Files
Nicolò RibaudoandGitHub 81942a1592 [hack pipes] Inline topic token when possible (#14278)
* Optimize away `|> #` pipes

* Inline topic token when it's used once and there are no side effects

* Fix deferred topic evaluation

* Update standalone tests
2022-02-19 12:38:40 +01:00

6 lines
121 B
JavaScript

let sum = 0;
for (var i = 0 |> #*#; i <= 10; i++)
sum += i;
expect(sum).toBe(10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1);