aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-04-30 06:32:24 +0800
committerGitHub <noreply@github.com>2019-04-30 06:32:24 +0800
commit2ea96549c55c44935c05fcaf6c68119d0eef4c8e (patch)
tree89a3ab9e15c3b250858f9d1c590816675cf93c5f /lib/parse.js
parentfba008e2989de0611d144a1ec91d9eb1c9b2b479 (diff)
downloadtracifyjs-2ea96549c55c44935c05fcaf6c68119d0eef4c8e.tar.gz
tracifyjs-2ea96549c55c44935c05fcaf6c68119d0eef4c8e.zip
unify logging functionality (#3392)
fixes #3253 fixes #3254
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 1a373a18..b7639df4 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -504,7 +504,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
var regexp = new RegExp(source, mods);
regexp.raw_source = source;
return token("regexp", regexp);
- } catch(e) {
+ } catch (e) {
parse_error(e.message);
}
});
@@ -556,7 +556,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
return function(x) {
try {
return cont(x);
- } catch(ex) {
+ } catch (ex) {
if (ex === EX_EOF) parse_error(eof_error);
else throw ex;
}