diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-02-27 03:40:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-27 03:40:54 +0800 |
commit | 872270b14986b2f24df406425eda5a3bf7a3b56a (patch) | |
tree | 5acd0f153bd43f1199b2f280a86d0a95c314f2e2 /test/mocha/string-literal.js | |
parent | b1c593a0419bf5ef0c6849262cb23bb34c97ea80 (diff) | |
download | tracifyjs-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/string-literal.js')
-rw-r--r-- | test/mocha/string-literal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mocha/string-literal.js b/test/mocha/string-literal.js index eb9e6f1c..6e337a24 100644 --- a/test/mocha/string-literal.js +++ b/test/mocha/string-literal.js @@ -19,7 +19,7 @@ describe("String literals", function() { var error = function(e) { return e instanceof UglifyJS.JS_Parse_Error && - e.message === "SyntaxError: Unterminated string constant"; + e.message === "Unterminated string constant"; }; for (var input in inputs) { @@ -49,7 +49,7 @@ describe("String literals", function() { var error = function(e) { return e instanceof UglifyJS.JS_Parse_Error && - e.message === "SyntaxError: Legacy octal escape sequences are not allowed in strict mode"; + e.message === "Legacy octal escape sequences are not allowed in strict mode"; } for (var input in inputs) { |