aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/sequences.js2
-rwxr-xr-xtest/run-tests.js4
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