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
8 lines
143 B
JavaScript
8 lines
143 B
JavaScript
let i = 0;
|
|
let sum = 0;
|
|
|
|
while (i |> (i = 2 * ^^ - ^^ + 1) |> ^^ <= 10)
|
|
sum += i;
|
|
|
|
expect(sum).toBe(10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1);
|