diff options
-rwxr-xr-x | bin/uglifyjs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs index 2611d960..56ff2235 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -264,11 +264,12 @@ async.eachLimit(files, 1, function (file, cb) { if (ARGS.enclose) { var arg_parameter_list = ARGS.enclose; - - if (!(arg_parameter_list instanceof Array)) { + if (arg_parameter_list === true) { + arg_parameter_list = []; + } + else if (!(arg_parameter_list instanceof Array)) { arg_parameter_list = [arg_parameter_list]; } - TOPLEVEL = TOPLEVEL.wrap_enclose(arg_parameter_list); } |