re...@codereview-hr.appspotmail.com
unread,Mar 9, 2016, 1:41:54 PM3/9/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to eri...@gmail.com, kpr...@google.com, google-ca...@googlegroups.com, re...@codereview-hr.appspotmail.com
Reviewers: MarkM,
Description:
The previous test assumed that if Proxy exists, Proxy.create also
exists, which is not necessarily the case these days.
Please review this at
https://codereview.appspot.com/292850043/
Affected files (+1, -1 lines):
M src/com/google/caja/es53.js
Index: src/com/google/caja/es53.js
diff --git a/src/com/google/caja/es53.js b/src/com/google/caja/es53.js
index
3d90f13501027904ff23c2724db784db0ac076f0..99ce23a07ffa5544e272421e2a248b81036b9465
100644
--- a/src/com/google/caja/es53.js
+++ b/src/com/google/caja/es53.js
@@ -4396,7 +4396,7 @@ var ___, cajaVM, safeJSON, WeakMap, ArrayLike, Proxy;
return getter ? getter.i___() : void 0;
});
- var nativeProxies = Proxy && (function () {
+ var nativeProxies = Proxy && Proxy.create && (function () {
var obj = {0: 'hi'};
var p = Proxy.create({
toString: function() { return '[ES5/3 feature test handler]'; },