diff options
author | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2016-07-04 02:51:20 +0200 |
---|---|---|
committer | Richard van Velzen <rvanvelzen@experty.com> | 2016-07-15 13:14:30 +0200 |
commit | 2d8af8947e3bf2daa51bdc199c504122563375d1 (patch) | |
tree | 160892cdf690f0b26911fe483b50727fcda998fc | |
parent | 2650182f47883aaaeddd731fffa0c4940d94cc36 (diff) | |
download | tracifyjs-2d8af8947e3bf2daa51bdc199c504122563375d1.tar.gz tracifyjs-2d8af8947e3bf2daa51bdc199c504122563375d1.zip |
Fix error style for regex errors
-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 bfbd14d5..bd6f95f6 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -495,7 +495,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { try { return token("regexp", new RegExp(regexp, mods)); } catch(e) { - parse_error(e.message); + parse_error("SyntaxError: " + e.message); } }); |