diff options
author | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2016-06-23 16:53:48 +0200 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2016-06-30 21:42:15 +0200 |
commit | 3a7d53f3cfa81fc8df3cd61c9adf0ce6c28ecd30 (patch) | |
tree | 16d0118980abc4e12c9f68ef6e82fce87f310675 /test/mocha | |
parent | 9676167aac715d2dd10918e2beb13b1a4a372616 (diff) | |
download | tracifyjs-3a7d53f3cfa81fc8df3cd61c9adf0ce6c28ecd30.tar.gz tracifyjs-3a7d53f3cfa81fc8df3cd61c9adf0ce6c28ecd30.zip |
Move OctalEscapeSequence to read_escape_char
This should simplify and improve implementation, make it easier to
implement template strings, and keep master a bit more in sync with
harmony.
Previous implementation wasn't broken, though the loop gave me the
impression it could read infinite numbers and annoyed me a bit. It was
also slightly unnecessary because the lookup involved only 3 characters.
Diffstat (limited to 'test/mocha')
-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 ea984213..d427472f 100644 --- a/test/mocha/string-literal.js +++ b/test/mocha/string-literal.js @@ -49,7 +49,7 @@ describe("String literals", function() { var error = function(e) { return e instanceof UglifyJS.JS_Parse_Error && - e.message === "Octal literals are not allowed in strict mode"; + e.message === "SyntaxError: Octal literals are not allowed in strict mode"; } for (var input in inputs) { |