aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/output.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/output.js b/lib/output.js
index 12358ffc..218372a8 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -56,6 +56,7 @@ function OutputStream(options) {
beautify : false,
braces : false,
comments : false,
+ galio : false,
ie8 : false,
indent_level : 4,
indent_start : 0,
@@ -767,9 +768,10 @@ function OutputStream(options) {
var p = output.parent();
if (p instanceof AST_PropAccess && p.expression === this) {
var value = this.value;
- // https://github.com/mishoo/UglifyJS/issues/115
- // https://github.com/mishoo/UglifyJS/pull/1009
- return value < 0 || /^0/.test(make_num(value));
+ // https://github.com/mishoo/UglifyJS/issues/115
+ return value < 0
+ // https://github.com/mishoo/UglifyJS/pull/1009
+ || output.option("galio") && /^0/.test(make_num(value));
}
});