Reviewers: kpreid2, MarkM,

Description:
IE10 has a magic readonly property RegExp.prototype.options that's
a string of the regexp's options. For instance, /foo/i.options === "i".

.options appears to be immune to deletion and poisoning, which
causes ses to give up on IE10. This seems to be the only thing
preventing ses/es5 from running on IE10.

I don't see any reason to treat .options different from the other
magic regexp properties, so I'm adding it to the whitelist.

Please review this at https://codereview.appspot.com/9034046/

Affected files:
  M     src/com/google/caja/ses/whitelist.js


Index: src/com/google/caja/ses/whitelist.js
===================================================================
--- src/com/google/caja/ses/whitelist.js        (revision 5387)
+++ src/com/google/caja/ses/whitelist.js        (working copy)
@@ -421,6 +421,7 @@
         ignoreCase: '*',
         multiline: '*',
         lastIndex: '*',
+        options: '*',                // non-std
         sticky: '*'                  // non-std
       }
     },


--

--- 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/groups/opt_out.


Reply via email to