diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-19 23:47:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 23:47:42 +0800 |
commit | 069df27bf18247a3e2f1d1a4abd0ee4fe28ef0ce (patch) | |
tree | 5c14f7b08aac48b1d8655ccac4faa08356d3251b /test | |
parent | 3e7873217cad8b6f67839cb06d1e126ca231bc42 (diff) | |
download | tracifyjs-069df27bf18247a3e2f1d1a4abd0ee4fe28ef0ce.tar.gz tracifyjs-069df27bf18247a3e2f1d1a4abd0ee4fe28ef0ce.zip |
enable `unsafe` for `test/ufuzz.js` (#2819)
- introduce `unsafe_undefined`
- safer `.toString()` compression
Miscellaneous
- rename `unsafe_Function`
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/functions.js | 2 | ||||
-rw-r--r-- | test/compress/issue-1443.js | 4 | ||||
-rw-r--r-- | test/compress/issue-1588.js | 2 | ||||
-rw-r--r-- | test/compress/sequences.js | 2 | ||||
-rw-r--r-- | test/ufuzz.json | 8 |
5 files changed, 12 insertions, 6 deletions
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 } } ] |