@@ -619,7 +619,15 @@ merge(Compressor.prototype, {
|
||||
if (node.key instanceof AST_Node) node.key.walk(tw);
|
||||
fixed = function() {
|
||||
var key = node.key;
|
||||
return make_node(typeof key == "string" ? AST_Dot : AST_Sub, node, {
|
||||
var type = AST_Sub;
|
||||
if (typeof key == "string") {
|
||||
if (is_identifier_string(key)) {
|
||||
type = AST_Dot;
|
||||
} else {
|
||||
key = make_node_from_constant(key, node);
|
||||
}
|
||||
}
|
||||
return make_node(type, node, {
|
||||
expression: save(),
|
||||
property: key
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user