better lazy error description test262

This commit is contained in:
Sebastian McKenzie
2015-01-07 13:33:19 +11:00
parent 3c154f9f6d
commit 3c82a61af1

View File

@@ -22,7 +22,8 @@ var exec = function (loc) {
try {
var file = fs.readFileSync(loc, "utf8");
// this normalises syntax and early runtime reference errors
// this normalises syntax and early runtime reference errors since they're
// both thrown as SyntaxErrors in acorn
// SyntaxError: var null;
// ReferenceError: 1++; (runtime)
var lazyError = /negative: (\S+)/.test(file);