diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-10-03 15:41:11 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-10-03 15:41:11 +0300 |
commit | 3412498795cfeb4c5700c39e05f895c96412695f (patch) | |
tree | f4a87bdcef8d6ded9d46625b81ee48aa44212bd3 /test | |
parent | 9221ad62dbca2d9cccd252ddc1344f221767bc96 (diff) | |
download | tracifyjs-3412498795cfeb4c5700c39e05f895c96412695f.tar.gz tracifyjs-3412498795cfeb4c5700c39e05f895c96412695f.zip |
AST cleanup (dropped AST_StatementBase)
Diffstat (limited to 'test')
-rwxr-xr-x | test/run-tests.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run-tests.js b/test/run-tests.js index 8822f2a5..abace39c 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -46,7 +46,7 @@ function test_directory(dir) { function as_toplevel(input) { if (input instanceof U.AST_BlockStatement) input = input.body; - else if (input instanceof U.AST_StatementBase) input = [ input ]; + else if (input instanceof U.AST_Statement) input = [ input ]; else throw new Error("Unsupported input syntax"); var toplevel = new U.AST_Toplevel({ body: input }); toplevel.figure_out_scope(); |