Avoid minifying typeof x == 'undefined' checks into x === void 0.

Former-commit-id: 23c998b48a1d2e1bca19dad6bf16fa94aeebed31
This commit is contained in:
John-David Dalton
2012-12-27 00:44:57 -06:00
parent cc1e0daaa4
commit ac25e21a0c
3 changed files with 48 additions and 47 deletions

View File

@@ -185,9 +185,10 @@
var toplevel = uglifyJS.parse(source);
// 2. compress
// // enable unsafe comparisons
// enable unsafe comparisons
toplevel.figure_out_scope();
toplevel = toplevel.transform(uglifyJS.Compressor({
'comparisons': false,
'unsafe_comps': true,
'warnings': false
}));