From 069df27bf18247a3e2f1d1a4abd0ee4fe28ef0ce Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 19 Jan 2018 23:47:42 +0800 Subject: enable `unsafe` for `test/ufuzz.js` (#2819) - introduce `unsafe_undefined` - safer `.toString()` compression Miscellaneous - rename `unsafe_Function` --- test/compress/functions.js | 2 +- test/compress/issue-1443.js | 4 ++-- test/compress/issue-1588.js | 2 +- test/compress/sequences.js | 2 +- test/ufuzz.json | 8 +++++++- 5 files changed, 12 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/compress/functions.js b/test/compress/functions.js index 2d55dd52..87328820 100644 --- a/test/compress/functions.js +++ b/test/compress/functions.js @@ -218,7 +218,7 @@ issue_203: { options = { keep_fargs: false, side_effects: true, - unsafe_Func: true, + unsafe_Function: true, unused: true, } input: { diff --git a/test/compress/issue-1443.js b/test/compress/issue-1443.js index 304a71ac..18554ff6 100644 --- a/test/compress/issue-1443.js +++ b/test/compress/issue-1443.js @@ -4,7 +4,7 @@ unsafe_undefined: { options = { conditionals: true, if_return: true, - unsafe: true + unsafe_undefined: true, } mangle = {} input: { @@ -30,7 +30,7 @@ keep_fnames: { options = { conditionals: true, if_return: true, - unsafe: true + unsafe_undefined: true, } mangle = { keep_fnames: true diff --git a/test/compress/issue-1588.js b/test/compress/issue-1588.js index 187d9f6c..40efb63b 100644 --- a/test/compress/issue-1588.js +++ b/test/compress/issue-1588.js @@ -61,7 +61,7 @@ unsafe_undefined: { options = { conditionals: true, if_return: true, - unsafe: true, + unsafe_undefined: true, } mangle = {} input: { diff --git a/test/compress/sequences.js b/test/compress/sequences.js index 2c900796..03075bf1 100644 --- a/test/compress/sequences.js +++ b/test/compress/sequences.js @@ -288,7 +288,7 @@ unsafe_undefined: { if_return: true, sequences: true, side_effects: true, - unsafe: true, + unsafe_undefined: true, } input: { function f(undefined) { diff --git a/test/ufuzz.json b/test/ufuzz.json index f04b6417..5ccd96e0 100644 --- a/test/ufuzz.json +++ b/test/ufuzz.json @@ -21,7 +21,13 @@ { "compress": { "keep_fargs": false, - "passes": 100 + "passes": 1e6, + "sequences": 1e6, + "unsafe": true, + "unsafe_Function": true, + "unsafe_math": true, + "unsafe_proto": true, + "unsafe_regexp": true } } ] -- cgit v1.2.3