From 872270b14986b2f24df406425eda5a3bf7a3b56a Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Mon, 27 Feb 2017 03:40:54 +0800 Subject: improve error messages (#1506) - better inheritance of `Error` sub-classes - mark parse error against source in CLI closes #235 closes #348 closes #524 closes #1356 closes #1405 --- test/mocha/number-literal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/mocha/number-literal.js') diff --git a/test/mocha/number-literal.js b/test/mocha/number-literal.js index 8e05574a..e80a5313 100644 --- a/test/mocha/number-literal.js +++ b/test/mocha/number-literal.js @@ -15,7 +15,7 @@ describe("Number literals", function () { } var error = function(e) { return e instanceof uglify.JS_Parse_Error && - e.message === "SyntaxError: Legacy octal literals are not allowed in strict mode"; + e.message === "Legacy octal literals are not allowed in strict mode"; } for (var i = 0; i < inputs.length; i++) { assert.throws(test(inputs[i]), error, inputs[i]); -- cgit v1.2.3