process non-inherited properties only
This commit is contained in:
parent
45ac500ba0
commit
307680f14b
|
|
@ -89,7 +89,7 @@ function Compressor(options, false_by_default) {
|
|||
}, true);
|
||||
var global_defs = this.options["global_defs"];
|
||||
if (typeof global_defs == "object") for (var key in global_defs) {
|
||||
if (/^@/.test(key)) {
|
||||
if (/^@/.test(key) && HOP(global_defs, key)) {
|
||||
var ast = parse(global_defs[key]);
|
||||
if (ast.body.length == 1 && ast.body[0] instanceof AST_SimpleStatement) {
|
||||
global_defs[key.slice(1)] = ast.body[0].body;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user