diff options
Diffstat (limited to 'tools/eliminator')
-rw-r--r-- | tools/eliminator/eliminator-test-output.js | 3 | ||||
-rw-r--r-- | tools/eliminator/eliminator-test.js | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/eliminator/eliminator-test-output.js b/tools/eliminator/eliminator-test-output.js index 8fcdd567..5a969284 100644 --- a/tools/eliminator/eliminator-test-output.js +++ b/tools/eliminator/eliminator-test-output.js @@ -112,8 +112,9 @@ function h() { x = y ? x + 1 : 7; var x = -5; } + var oneUse = glob; if (1) { - otherGlob = glob; + otherGlob = oneUse; breakMe(); } var oneUse2 = glob2; diff --git a/tools/eliminator/eliminator-test.js b/tools/eliminator/eliminator-test.js index ebbdc000..16ed51c4 100644 --- a/tools/eliminator/eliminator-test.js +++ b/tools/eliminator/eliminator-test.js @@ -135,7 +135,7 @@ function h() { x = y ? x + 1 : 7; var x = -5; } - var oneUse = glob; + var oneUse = glob; // for now, cannot eliminate into body or else of if if (1) { otherGlob = oneUse; breakMe(); |