aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/with.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/with.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/with.js')
-rw-r--r--test/mocha/with.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mocha/with.js b/test/mocha/with.js
index 734e1e13..a74ef41a 100644
--- a/test/mocha/with.js
+++ b/test/mocha/with.js
@@ -9,7 +9,7 @@ describe("With", function() {
}
var error = function(e) {
return e instanceof uglify.JS_Parse_Error &&
- e.message === "SyntaxError: Strict mode may not include a with statement";
+ e.message === "Strict mode may not include a with statement";
}
assert.throws(test, error);
});