aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Van de Gejuchte <anthonyvdgent@gmail.com>2016-07-04 02:51:20 +0200
committerRichard van Velzen <rvanvelzen@experty.com>2016-07-15 13:14:30 +0200
commit2d8af8947e3bf2daa51bdc199c504122563375d1 (patch)
tree160892cdf690f0b26911fe483b50727fcda998fc
parent2650182f47883aaaeddd731fffa0c4940d94cc36 (diff)
downloadtracifyjs-2d8af8947e3bf2daa51bdc199c504122563375d1.tar.gz
tracifyjs-2d8af8947e3bf2daa51bdc199c504122563375d1.zip
Fix error style for regex errors
-rw-r--r--lib/parse.js2
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);
}
});