mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Optimize away `|> #` pipes * Inline topic token when it's used once and there are no side effects * Fix deferred topic evaluation * Update standalone tests
10 lines
156 B
JavaScript
10 lines
156 B
JavaScript
let x = 0;
|
|
|
|
let fnA = x++ |> (() => %);
|
|
let fnB = x++ |> (0, () => %);
|
|
|
|
expect(x).toBe(2);
|
|
expect(fnA()).toBe(0);
|
|
expect(fnB()).toBe(1);
|
|
expect(x).toBe(2);
|