minor tests fix

This commit is contained in:
Mihai Bazon
2012-09-24 10:27:49 +03:00
parent a83b28503f
commit 4f97da9660
2 changed files with 4 additions and 2 deletions

View File

@@ -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