aboutsummaryrefslogtreecommitdiff
path: root/test/compress/collapse_vars.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/collapse_vars.js')
-rw-r--r--test/compress/collapse_vars.js20
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"
+}