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]'; },


--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to