aboutsummaryrefslogtreecommitdiff
path: root/tools/eliminator/node_modules/uglify-js/lib/process.js
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-08-23 06:08:01 +0300
committermax99x <max99x@gmail.com>2011-08-23 06:08:19 +0300
commit536bad16ce88bad71fe94af285f9a9d2f721b2ad (patch)
treee6b5b8935b973819117c40ee1001e82120962d36 /tools/eliminator/node_modules/uglify-js/lib/process.js
parent9cf10ae755d5ef32d558d945c25464e1ba564738 (diff)
Updated UglifyJS to preserve object key quotedness (Closure Compiler compatibility).
Diffstat (limited to 'tools/eliminator/node_modules/uglify-js/lib/process.js')
-rw-r--r--tools/eliminator/node_modules/uglify-js/lib/process.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eliminator/node_modules/uglify-js/lib/process.js b/tools/eliminator/node_modules/uglify-js/lib/process.js
index d34e2394..85709857 100644
--- a/tools/eliminator/node_modules/uglify-js/lib/process.js
+++ b/tools/eliminator/node_modules/uglify-js/lib/process.js
@@ -1673,7 +1673,7 @@ function gen_code(ast, options) {
return indent(make_function(p[0], p[1][2], p[1][3], p[2]));
}
var key = p[0], val = parenthesize(p[1], "seq");
- if (options.quote_keys) {
+ if (options.quote_keys || p.quoted) {
key = encode_string(key);
} else if ((typeof key == "number" || !beautify && +key + "" == key)
&& parseFloat(key) >= 0) {