diff options
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r-- | test/compress/properties.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js index 43f08b42..eb47624a 100644 --- a/test/compress/properties.js +++ b/test/compress/properties.js @@ -1378,3 +1378,25 @@ issue_3389: { } expect_stdout: "PASS" } + +object_super: { + options = { + properties: true, + } + input: { + ({ + f(a) { + return a ? console.log("PASS") : super.log("PASS"); + }, + }).f(console); + } + expect: { + ({ + f(a) { + return a ? console.log("PASS") : super.log("PASS"); + }, + }).f(console); + } + expect_stdout: "PASS" + node_version: ">=4" +} |