}
if (prop instanceof AST_Node) break;
prop = "" + prop;
- if (compressor.has_directive("use strict")) {
- if (!all(def.value.properties, function(node) {
- return node.key != prop && node.key.name != prop;
- })) break;
- }
+ var diff = compressor.has_directive("use strict") ? function(node) {
+ return node.key != prop && node.key.name != prop;
+ } : function(node) {
+ return node.key.name != prop;
+ };
+ if (!all(def.value.properties, diff)) break;
def.value.properties.push(make_node(AST_ObjectKeyVal, node, {
key: prop,
value: node.right