diff options
author | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2016-06-13 12:36:47 +0200 |
---|---|---|
committer | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2016-06-30 22:12:50 +0200 |
commit | a97690fc724a7beba77d7fde449ea56676804933 (patch) | |
tree | 10a19039600293238e1b113c78d81ee9219a64d2 /test/mocha/string-literal.js | |
parent | 02c638209ee22816b1324ff0c0f47b27db1336af (diff) | |
download | tracifyjs-a97690fc724a7beba77d7fde449ea56676804933.tar.gz tracifyjs-a97690fc724a7beba77d7fde449ea56676804933.zip |
Various LineTerminator changes
* Escaped newlines should also produce SyntaxError
* Fix multiline comment parsing and add tests
* Adapt makePredicate to handle \u2028 and \u2029
* Move up nlb check in regex so it's checked before any escape handling
* Change error messages to conform ecma standard
* Find_eol not recornizing \u2028 and \u2029 as line terminator
* Remove \u180e as it is removed in unicode 6.3.0 from the category zs
Diffstat (limited to 'test/mocha/string-literal.js')
-rw-r--r-- | test/mocha/string-literal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mocha/string-literal.js b/test/mocha/string-literal.js index d427472f..fc4c4277 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 === "Unterminated string constant"; + e.message === "SyntaxError: Unterminated string constant"; }; for (var input in inputs) { |