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

4 lines
117 B
JavaScript

const program = '(function() { return this; })()';
const result = eval(program);
expect(result).not.toBeUndefined();