aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
});