diff options
Diffstat (limited to 'lib/parse.js')
-rw-r--r-- | lib/parse.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/parse.js b/lib/parse.js index be103b67..467fc60b 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -490,6 +490,8 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { break; } else if (ch == "\\") { prev_backslash = true; + } else if ("\r\n\u2028\u2029".indexOf(ch) >= 0) { + parse_error("Unexpected line terminator"); } else { regexp += ch; } |