diff options
author | Richard van Velzen <rvanvelzen1@gmail.com> | 2015-02-11 21:27:21 +0100 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2015-02-11 21:27:21 +0100 |
commit | 61e850ceb5a46b46589b1d985853f072067e2385 (patch) | |
tree | eadc08a3095060260ed1fd9b02c216234f8b2cff /test/compress/conditionals.js | |
parent | 992b6b9fcce47ca67ecb14675f10b172ce7a99b5 (diff) | |
download | tracifyjs-61e850ceb5a46b46589b1d985853f072067e2385.tar.gz tracifyjs-61e850ceb5a46b46589b1d985853f072067e2385.zip |
Clean up unit test breakage
In 992b6b9fcce47ca67ecb14675f10b172ce7a99b5 unit test broke (which I missed). This was due to undeclared variables not being side-effects free.
However, since they're really not side-effect free, just declare them in the test cases.
Diffstat (limited to 'test/compress/conditionals.js')
-rw-r--r-- | test/compress/conditionals.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/compress/conditionals.js b/test/compress/conditionals.js index 9af1630a..e5a39229 100644 --- a/test/compress/conditionals.js +++ b/test/compress/conditionals.js @@ -53,6 +53,7 @@ ifs_3_should_warn: { booleans : true }; input: { + var x, y; if (x && !(x + "1") && y) { // 1 var qq; foo(); @@ -68,6 +69,7 @@ ifs_3_should_warn: { } } expect: { + var x, y; var qq; bar(); // 1 var jj; foo(); // 2 } |