aboutsummaryrefslogtreecommitdiff
path: root/test/compress/properties.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-01-06 06:16:51 +0800
committerGitHub <noreply@github.com>2018-01-06 06:16:51 +0800
commit3505a3604a682138512a7e03964fb68c861b5cbd (patch)
tree65c12a07e280d5f9e63d580e9363f59ad26567b2 /test/compress/properties.js
parent9b1bc6c014338422047479365a28b27f1988d353 (diff)
downloadtracifyjs-3505a3604a682138512a7e03964fb68c861b5cbd.tar.gz
tracifyjs-3505a3604a682138512a7e03964fb68c861b5cbd.zip
enhance `unsafe_proto` (#2733)
Diffstat (limited to 'test/compress/properties.js')
-rw-r--r--test/compress/properties.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/compress/properties.js b/test/compress/properties.js
index 16374ef8..b2ce5f61 100644
--- a/test/compress/properties.js
+++ b/test/compress/properties.js
@@ -567,12 +567,18 @@ native_prototype: {
}
input: {
Array.prototype.splice.apply(a, [1, 2, b, c]);
+ Function.prototype.call.apply(console.log, console, [ "foo" ]);
+ Number.prototype.toFixed.call(Math.PI, 2);
Object.prototype.hasOwnProperty.call(d, "foo");
+ RegExp.prototype.test.call(/foo/, "bar");
String.prototype.indexOf.call(e, "bar");
}
expect: {
[].splice.apply(a, [1, 2, b, c]);
+ (function() {}).call.apply(console.log, console, [ "foo" ]);
+ 0..toFixed.call(Math.PI, 2);
({}).hasOwnProperty.call(d, "foo");
+ /t/.test.call(/foo/, "bar");
"".indexOf.call(e, "bar");
}
}