swc/crates/swc_ecma_minifier/tests/terser_exec_base.js
2022-05-10 03:21:43 +00:00

9 lines
169 B
JavaScript

global.id = (v) => v;
global.leak = (cb) => cb;
global.sideefffect = (() => {
let i = 0;
return () => {
console.log(`Side effect: ${i++}`);
};
})();