diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-24 10:27:49 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-24 10:27:49 +0300 |
commit | 4f97da96608744e9f20c3994d8d1e66d6b6949a1 (patch) | |
tree | 86acda6c9d75084d2a70f33e2c18b6df9f9c3cda /test | |
parent | a83b28503f4673aeb744b45306500584a6480e29 (diff) | |
download | tracifyjs-4f97da96608744e9f20c3994d8d1e66d6b6949a1.tar.gz tracifyjs-4f97da96608744e9f20c3994d8d1e66d6b6949a1.zip |
minor tests fix
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/sequences.js | 2 | ||||
-rwxr-xr-x | test/run-tests.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/compress/sequences.js b/test/compress/sequences.js index 06c2b989..513bc84b 100644 --- a/test/compress/sequences.js +++ b/test/compress/sequences.js @@ -84,6 +84,6 @@ make_sequences_4: { for (x = 5, i = 0; i < 5; i++) console.log(i); for (x = 5; i < 5; i++) console.log(i); switch (x = 5, y) {} - with (x = 5, obj) {} + with (x = 5, obj); } } diff --git a/test/run-tests.js b/test/run-tests.js index 2949bbf9..32b6c423 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -87,7 +87,9 @@ function run_compress_tests() { function parse_test(file) { var script = fs.readFileSync(file, "utf8"); - var ast = U.parse(script); + var ast = U.parse(script, { + filename: file + }); var tests = {}; var tw = new U.TreeWalker(function(node, descend){ if (node instanceof U.AST_LabeledStatement |