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/line-endings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/mocha/line-endings.js') diff --git a/test/mocha/line-endings.js b/test/mocha/line-endings.js index ef46bccd..10e2a1c5 100644 --- a/test/mocha/line-endings.js +++ b/test/mocha/line-endings.js @@ -50,7 +50,7 @@ describe("line-endings", function() { } var fail = function(e) { return e instanceof Uglify.JS_Parse_Error && - e.message === "SyntaxError: Unexpected line terminator"; + e.message === "Unexpected line terminator"; } for (var i = 0; i < inputs.length; i++) { assert.throws(test(inputs[i]), fail); -- cgit v1.2.3