From: Mihai Bazon Date: Mon, 24 Sep 2012 07:27:49 +0000 (+0300) Subject: minor tests fix X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4f97da96608744e9f20c3994d8d1e66d6b6949a1;p=UglifyJS.git minor tests fix --- 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