LGTM
https://codereview.appspot.com/12801043/diff/32001/src/com/google/caja/ses/repairES5.js
File src/com/google/caja/ses/repairES5.js (right):
https://codereview.appspot.com/12801043/diff/32001/src/com/google/caja/ses/repairES5.js#newcode3436
src/com/google/caja/ses/repairES5.js:3436: var
repair_TYPED_ARRAY_PROTOS_LOOK_UNFROZEN_wasApplied = false;
Since the test occurs first textually, please declare this variable
above the test instead.
https://codereview.appspot.com/12801043/diff/32001/src/com/google/caja/ses/repairES5.js#newcode3454
src/com/google/caja/ses/repairES5.js:3454: // is used without startSES.)
More weird but more safe:
Add a ses.flag that startSES can use to communicate back to repairES5.
After startSES freezes the primordials, it sets the flag. Here, the
wrapper function would report freeze or not depending on whether the
flag was set. Also for isFrozen below.
https://codereview.appspot.com/12801043/diff/32001/src/com/google/caja/ses/repairES5.js#newcode4501
src/com/google/caja/ses/repairES5.js:4501: // DOMException is poisonous
to WeakMaps on FF so we choose not to
I don't understand this comment.
https://codereview.appspot.com/12801043/
--
---
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.