Although it would be nice to enforce `AST_Node` cloning during transformation, that ship has sailed a long time ago. We now get the assigned value when resolving `AST_SymbolRef` instead of `reset_opt_flags()`, which has the added advantage of improved compressor efficiency. fixes #1787
20 lines
349 B
JavaScript
20 lines
349 B
JavaScript
unary_prefix: {
|
|
options = {
|
|
evaluate: true,
|
|
reduce_vars: true,
|
|
unused: true,
|
|
}
|
|
input: {
|
|
console.log(function() {
|
|
var x = -(2 / 3);
|
|
return x;
|
|
}());
|
|
}
|
|
expect: {
|
|
console.log(function() {
|
|
return -2 / 3;
|
|
}());
|
|
}
|
|
expect_stdout: true
|
|
}
|