diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2018-01-17 20:41:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 20:41:51 +0800 |
commit | d3ce2bc9e73d9d98b34b261d282a18b9ce9d5880 (patch) | |
tree | 825192c83f43f746719a1784d76d9ee231bbbdee /test/compress/properties.js | |
parent | cff3bf49142e5d99ad07e182169a73f985b7b652 (diff) | |
download | tracifyjs-d3ce2bc9e73d9d98b34b261d282a18b9ce9d5880.tar.gz tracifyjs-d3ce2bc9e73d9d98b34b261d282a18b9ce9d5880.zip |
suppress `unsafe_proto` for LHS expressions (#2804)
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r-- | test/compress/properties.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js index 933774d5..af115ff1 100644 --- a/test/compress/properties.js +++ b/test/compress/properties.js @@ -583,6 +583,25 @@ native_prototype: { } } +native_prototype_lhs: { + options = { + unsafe_proto: true, + } + input: { + console.log(function() { + Function.prototype.bar = "PASS"; + return function() {}; + }().bar); + } + expect: { + console.log(function() { + Function.prototype.bar = "PASS"; + return function() {}; + }().bar); + } + expect_stdout: "PASS" +} + accessor_boolean: { input: { var a = 1; |