minor tests fix
authorMihai Bazon <mihai@bazon.net>
Mon, 24 Sep 2012 07:27:49 +0000 (10:27 +0300)
committerMihai Bazon <mihai@bazon.net>
Mon, 24 Sep 2012 07:27:49 +0000 (10:27 +0300)
test/compress/sequences.js
test/run-tests.js

index 06c2b98..513bc84 100644 (file)
@@ -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);
     }
 }
index 2949bbf..32b6c42 100755 (executable)
@@ -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