diff options
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(); |