aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/number-literal.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/number-literal.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/number-literal.js')
-rw-r--r--test/mocha/number-literal.js2
1 files changed, 1 insertions, 1 deletions
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]);