diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-21 17:39:43 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-21 17:50:46 -0800 |
commit | 2266ef7caca3a2039b46f65293336f1a56e908f4 (patch) | |
tree | 54af285f1f3fbff0a9124a43daf54916a46cbe21 | |
parent | 55cadd9dc575f27c46a2c8d9775ada8d1d51ebc4 (diff) |
assign to null to clear a local variable, avoid delete
-rw-r--r-- | tools/js-optimizer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index 5fd0f138..b35da99d 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -2670,8 +2670,8 @@ function registerizeHarder(ast) { junctions[block.exit].inblocks[block.id] = 1; } } - delete labelledBlocks; - delete labelledJumps; + labelledBlocks = null; + labelledJumps = null; // Do a backwards data-flow analysis to determine the set of live // variables at each junction, and to use this information to eliminate |