[Pkg-javascript-commits] [uglifyjs] 02/49: Fix error style for regex errors

Jonas Smedegaard dr at jones.dk
Fri Dec 9 11:43:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository uglifyjs.

commit 2d8af8947e3bf2daa51bdc199c504122563375d1
Author: Anthony Van de Gejuchte <anthonyvdgent at gmail.com>
Date:   Mon Jul 4 02:51:20 2016 +0200

    Fix error style for regex errors
---
 lib/parse.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/parse.js b/lib/parse.js
index bfbd14d..bd6f95f 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);
         }
     });
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list