diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-04-30 06:32:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 06:32:24 +0800 |
commit | 2ea96549c55c44935c05fcaf6c68119d0eef4c8e (patch) | |
tree | 89a3ab9e15c3b250858f9d1c590816675cf93c5f /lib/parse.js | |
parent | fba008e2989de0611d144a1ec91d9eb1c9b2b479 (diff) | |
download | tracifyjs-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.js | 4 |
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; } |