From 4f97da96608744e9f20c3994d8d1e66d6b6949a1 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Mon, 24 Sep 2012 10:27:49 +0300 Subject: minor tests fix --- test/compress/sequences.js | 2 +- 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 -- cgit v1.2.3