aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/line-endings.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-02-27 03:40:54 +0800
committerGitHub <noreply@github.com>2017-02-27 03:40:54 +0800
commit872270b14986b2f24df406425eda5a3bf7a3b56a (patch)
tree5acd0f153bd43f1199b2f280a86d0a95c314f2e2 /test/mocha/line-endings.js
parentb1c593a0419bf5ef0c6849262cb23bb34c97ea80 (diff)
downloadtracifyjs-872270b14986b2f24df406425eda5a3bf7a3b56a.tar.gz
tracifyjs-872270b14986b2f24df406425eda5a3bf7a3b56a.zip
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
Diffstat (limited to 'test/mocha/line-endings.js')
-rw-r--r--test/mocha/line-endings.js2
1 files changed, 1 insertions, 1 deletions
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);