aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/properties.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js
index 7ad54ebe..29bdfe2a 100644
--- a/test/compress/properties.js
+++ b/test/compress/properties.js
@@ -539,3 +539,19 @@ first_256_hex_chars_as_properties: {
};
}
}
+
+native_prototype: {
+ options = {
+ unsafe_proto: true,
+ }
+ input: {
+ Array.prototype.splice.apply(a, [1, 2, b, c]);
+ Object.prototype.hasOwnProperty.call(d, "foo");
+ String.prototype.indexOf.call(e, "bar");
+ }
+ expect: {
+ [].splice.apply(a, [1, 2, b, c]);
+ ({}).hasOwnProperty.call(d, "foo");
+ "".indexOf.call(e, "bar");
+ }
+}