aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/number-literal.js
diff options
context:
space:
mode:
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]);