aboutsummaryrefslogtreecommitdiff
path: root/gnu/
0 files changed, 0 insertions, 0 deletions
e_1986: { options = { global_defs: { "@alert": "console.log", }, } input: { alert(42); } expect: { console.log(42); } } issue_2167: { options = { conditionals: true, dead_code: true, evaluate: true, global_defs: { "@isDevMode": "function(){}", }, passes: 2, side_effects: true, } input: { if (isDevMode()) { greetOverlord(); } doWork(); } expect: { doWork(); } } issue_3217: { options = { collapse_vars: true, global_defs: { "@o": "{fn:function(){var a=42;console.log(a)}}", }, inline: true, properties: true, reduce_vars: true, side_effects: true, unused: true, } input: { o.fn(); } expect: { console.log(42); } }