Make loose parser work with minor interface changes introduced by modularization

This commit is contained in:
Marijn Haverbeke
2015-03-20 12:04:33 +01:00
parent a1fe3a1859
commit dd89c6e112
5 changed files with 133 additions and 130 deletions

View File

@@ -27,7 +27,7 @@
try {
var ast = parse(test.code, testOpts);
} catch(e) {
if (!(e instanceof SyntaxError)) throw e;
if (!(e instanceof SyntaxError)) { console.log(e.stack); throw e; }
if (test.error) {
if (e.message == test.error) callback("ok", test.code);
else callback("fail", test.code,