Fix error style for regex errors
This commit is contained in:
committed by
Richard van Velzen
parent
2650182f47
commit
2d8af8947e
@@ -495,7 +495,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
|
|||||||
try {
|
try {
|
||||||
return token("regexp", new RegExp(regexp, mods));
|
return token("regexp", new RegExp(regexp, mods));
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
parse_error(e.message);
|
parse_error("SyntaxError: " + e.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user