aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-01-19 23:47:42 +0800
committerGitHub <noreply@github.com>2018-01-19 23:47:42 +0800
commit069df27bf18247a3e2f1d1a4abd0ee4fe28ef0ce (patch)
tree5c14f7b08aac48b1d8655ccac4faa08356d3251b /test/compress
parent3e7873217cad8b6f67839cb06d1e126ca231bc42 (diff)
downloadtracifyjs-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/compress')
-rw-r--r--test/compress/functions.js2
-rw-r--r--test/compress/issue-1443.js4
-rw-r--r--test/compress/issue-1588.js2
-rw-r--r--test/compress/sequences.js2
4 files changed, 5 insertions, 5 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) {