aboutsummaryrefslogtreecommitdiff
path: root/test/run-tests.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-09-24 10:27:49 +0300
committerMihai Bazon <mihai@bazon.net>2012-09-24 10:27:49 +0300
commit4f97da96608744e9f20c3994d8d1e66d6b6949a1 (patch)
tree86acda6c9d75084d2a70f33e2c18b6df9f9c3cda /test/run-tests.js
parenta83b28503f4673aeb744b45306500584a6480e29 (diff)
downloadtracifyjs-4f97da96608744e9f20c3994d8d1e66d6b6949a1.tar.gz
tracifyjs-4f97da96608744e9f20c3994d8d1e66d6b6949a1.zip
minor tests fix
Diffstat (limited to 'test/run-tests.js')
-rwxr-xr-xtest/run-tests.js4
1 files changed, 3 insertions, 1 deletions
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