diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-03-20 21:50:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 05:50:41 +0800 |
commit | ff72eaa3c3e0d93cc4f5b111ede223e1a0ebef48 (patch) | |
tree | b31cd84203773b700069d45d83ec1ffd6b101640 /test/input | |
parent | 0a1c9b34cea8bf740c70d5457ef9e3bd37778607 (diff) | |
download | tracifyjs-ff72eaa3c3e0d93cc4f5b111ede223e1a0ebef48.tar.gz tracifyjs-ff72eaa3c3e0d93cc4f5b111ede223e1a0ebef48.zip |
improve `--reduce-test` (#3742)
- ignore difference in error messages
- improve readability on trailing whitespace differences
- improve performance & quality via `console.log()` insertions
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/reduce/label.reduced.js | 5 | ||||
-rw-r--r-- | test/input/reduce/setter.reduced.js | 1 | ||||
-rw-r--r-- | test/input/reduce/unsafe_math.reduced.js | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/test/input/reduce/label.reduced.js b/test/input/reduce/label.reduced.js index faaa206d..a1e79507 100644 --- a/test/input/reduce/label.reduced.js +++ b/test/input/reduce/label.reduced.js @@ -1,8 +1,7 @@ +// (beautified) var o = this; -for (var k in o) { - 0; -} +for (var k in o) {} var a; diff --git a/test/input/reduce/setter.reduced.js b/test/input/reduce/setter.reduced.js index d947226f..e0a3c626 100644 --- a/test/input/reduce/setter.reduced.js +++ b/test/input/reduce/setter.reduced.js @@ -1,3 +1,4 @@ +// (beautified) console.log(function f(a) { ({ set p(v) { diff --git a/test/input/reduce/unsafe_math.reduced.js b/test/input/reduce/unsafe_math.reduced.js index 13460423..5e1f0ba1 100644 --- a/test/input/reduce/unsafe_math.reduced.js +++ b/test/input/reduce/unsafe_math.reduced.js @@ -1,3 +1,4 @@ +// (beautified) var b = 0; var expr2 = (0 - 1 - .1 - .1).toString(); |