-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Repro:
$ uglifyjs test.js -c -d FOO=true -d BAR=true
/usr/local/share/npm/lib/node_modules/uglify-js/bin/uglifyjs:358
ast.walk(new UglifyJS.TreeWalker(function(node){
^
TypeError: Cannot call method 'walk' of undefined
at getOptions (/usr/local/share/npm/lib/node_modules/uglify-js/bin/uglifyjs:358:13)
at Object.<anonymous> (/usr/local/share/npm/lib/node_modules/uglify-js/bin/uglifyjs:125:42)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
Of course, the correct calling syntax works (-d FOO=true,BAR=true), but there should be a better error message for this case.
Metadata
Metadata
Assignees
Labels
No labels