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
6 lines
127 B
JavaScript
6 lines
127 B
JavaScript
let sum = 0;
|
|
for (var i = 0; i |> # + # <= 20; i++)
|
|
sum = sum + i;
|
|
|
|
expect(sum).toBe(10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1)
|