diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/collapse_vars.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js index 4834dd7d..85006703 100644 --- a/test/compress/collapse_vars.js +++ b/test/compress/collapse_vars.js @@ -9151,3 +9151,23 @@ issue_4910: { } expect_stdout: "bar foo" } + +issue_4914: { + options = { + collapse_vars: true, + pure_getters: "strict", + } + input: { + console.log(typeof function f() { + f.__proto__ = 42; + return f.__proto__; + }()); + } + expect: { + console.log(typeof function f() { + f.__proto__ = 42; + return f.__proto__; + }()); + } + expect_stdout: "function" +} |