Add filename to the JS_Parse_Error exception.
authorEdward Casbon <edward@edwardcasbon.co.uk>
Mon, 11 Aug 2014 11:40:01 +0000 (12:40 +0100)
committerRichard van Velzen <rvanvelzen1@gmail.com>
Wed, 11 Feb 2015 22:21:22 +0000 (23:21 +0100)
commitae07714927f44790e40628cde4fa57bc2c4cb076
tree36e462a353befbf26228fa7431ceb4ba434fab61
parent0e41a3fad4f8cabbac568b55f2b8e460646b5860
Add filename to the JS_Parse_Error exception.

It would be nice to have access to the filename of the file that includes the code that causes a JavaScript error. This is especially handy if uglifying multiple files at once.

Only a small change is needed for this to happen as it's already available in the function that throws the error.
lib/parse.js