diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-05-12 03:52:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-12 03:52:46 +0800 |
commit | 54cb67805532667af50947cc3846d2cacc2a0a1d (patch) | |
tree | d707c4e63a4deb6c07afeaeb1c67e94c97a90c61 /test/compress/assignment.js | |
parent | e88c439eacf0715991e50e1cc664e29af88ee7ab (diff) | |
download | tracifyjs-54cb67805532667af50947cc3846d2cacc2a0a1d.tar.gz tracifyjs-54cb67805532667af50947cc3846d2cacc2a0a1d.zip |
fix corner case in `assignments` (#3407)
fixes #3406
Diffstat (limited to 'test/compress/assignment.js')
-rw-r--r-- | test/compress/assignment.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/test/compress/assignment.js b/test/compress/assignment.js index 191b892e..ece0185d 100644 --- a/test/compress/assignment.js +++ b/test/compress/assignment.js @@ -311,39 +311,3 @@ issue_3375: { } expect_stdout: "string" } - -issue_3402: { - options = { - assignments: true, - evaluate: true, - functions: true, - passes: 2, - reduce_vars: true, - side_effects: true, - toplevel: true, - typeofs: true, - unused: true, - } - input: { - var f = function f() { - f = 42; - console.log(typeof f); - }; - "function" == typeof f && f(); - "function" == typeof f && f(); - console.log(typeof f); - } - expect: { - function f() { - console.log(typeof f); - } - f(); - f(); - console.log(typeof f); - } - expect_stdout: [ - "function", - "function", - "function", - ] -} |