Stringify the argument before trying to parse it.
This commit is contained in:
parent
92e4340732
commit
a1ae0cd2d0
|
|
@ -476,7 +476,7 @@ function getOptions(x, constants) {
|
|||
if (x !== "") {
|
||||
var ast;
|
||||
try {
|
||||
ast = UglifyJS.parse(x, { expression: true });
|
||||
ast = UglifyJS.parse(x + "", { expression: true });
|
||||
} catch(ex) {
|
||||
if (ex instanceof UglifyJS.JS_Parse_Error) {
|
||||
sys.error("Error parsing arguments in: " + x);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user