diff options
author | Richard van Velzen <rvanvelzen1@gmail.com> | 2016-01-14 08:54:40 +0100 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2016-01-14 08:54:40 +0100 |
commit | ac8db977b95b447cba577b41285cb0fa9e65ebdd (patch) | |
tree | 76592b4c0effcc7cc2ef9aa3195e9ca557951a4a /lib | |
parent | fe4e9f9d97dcc6594a8fc49e04630aa619ff1866 (diff) | |
parent | 88b77ddaa9d6b3d55e537dc21030ac58ddfcb86e (diff) | |
download | tracifyjs-ac8db977b95b447cba577b41285cb0fa9e65ebdd.tar.gz tracifyjs-ac8db977b95b447cba577b41285cb0fa9e65ebdd.zip |
Merge pull request #905 from avdg/unit-tests
Add unit tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/parse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse.js b/lib/parse.js index 7e7b2272..2218c00c 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -399,7 +399,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { if (octal_len > 0) ch = String.fromCharCode(parseInt(ch, 8)); else ch = read_escaped_char(true); } - else if (ch == "\n") parse_error("Unterminated string constant"); + else if ("\r\n\u2028\u2029".indexOf(ch) >= 0) parse_error("Unterminated string constant"); else if (ch == quote) break; ret += ch; } |