http://codereview.appspot.com/4701044/diff/1/src/com/google/caja/es53.js
File src/com/google/caja/es53.js (right):

http://codereview.appspot.com/4701044/diff/1/src/com/google/caja/es53.js#newcode154
src/com/google/caja/es53.js:154: * {@code obj.freeze___()}
freezes the object; on proxies invokes
On 2011/07/13 23:06:18, Mark S. Miller wrote:
Have pe___ and freeze___. Need seal___ as well.

Done.

http://codereview.appspot.com/4701044/diff/1/src/com/google/caja/es53.js#newcode216
src/com/google/caja/es53.js:216: // configurable, and the thisect itself
is not extensible.
On 2011/07/13 23:06:18, Mark S. Miller wrote:
typo: "thisect". Also below. Due to a "s/obj/this/" ?

Done.

http://codereview.appspot.com/4701044/diff/1/src/com/google/caja/es53.js#newcode2751
src/com/google/caja/es53.js:2751: if (!O.HasOwnProperty___(P)) {
On 2011/07/13 23:06:18, Mark S. Miller wrote:
The earlier one inlined guestHasOwnProperty for speed. Should this
likewise
inline HasOwnProperty___ for speed? Does it no longer need to?

Done.

http://codereview.appspot.com/4701044/diff/1/src/com/google/caja/es53.js#newcode3631
src/com/google/caja/es53.js:3631: if (result === void 0) { throw new
TypeError("Unable to freeze."); }
On 2011/07/13 23:06:18, Mark S. Miller wrote:
If we move this test into the freeze___ method of proxies, we get to
avoid this
test for normal objects.

Done.

http://codereview.appspot.com/4701044/diff/1/src/com/google/caja/es53.js#newcode3639
src/com/google/caja/es53.js:3639: throw new TypeError('Only objects may
be frozen.');
On 2011/07/13 23:06:18, Mark S. Miller wrote:
Should be "may be made non-extensible"

Done.

http://codereview.appspot.com/4701044/diff/1/src/com/google/caja/es53.js#newcode3642
src/com/google/caja/es53.js:3642: if (result === void 0) {
On 2011/07/13 23:06:18, Mark S. Miller wrote:
Likewise, we could move this test into the pe___ method of proxies,
saving a
test in the normal case.

Done.

http://codereview.appspot.com/4701044/diff/3001/src/com/google/caja/es53.js
File src/com/google/caja/es53.js (right):

http://codereview.appspot.com/4701044/diff/3001/src/com/google/caja/es53.js#newcode4694
src/com/google/caja/es53.js:4694: return
!!(dis.getPropertyDescriptor_m___ === dis ?
On 2011/07/14 05:01:01, Mark S. Miller wrote:
The fastpath test for *_m___ is only a test for truthiness, not
own-ness.
Applies many places.

Done.  Also fixed the comment in the header and fastpathMethod.

http://codereview.appspot.com/4701044/diff/3001/src/com/google/caja/es53.js#newcode4706
src/com/google/caja/es53.js:4706: // Test if the old "reviver" parameter
was passed
On 2011/07/14 05:01:01, Mark S. Miller wrote:
s/reviver/receiver/. Interesting idea.

Done.

http://codereview.appspot.com/4701044/diff/3001/src/com/google/caja/es53.js#newcode4727
src/com/google/caja/es53.js:4727: // Test if the old "reviver" property
was passed
On 2011/07/14 05:01:01, Mark S. Miller wrote:
receiver

Done.

http://codereview.appspot.com/4701044/diff/3001/src/com/google/caja/es53.js#newcode4950
src/com/google/caja/es53.js:4950: proxy.freeze___ = proxy.pe___ =
proxy.seal___ = function () {
On 2011/07/13 23:06:19, Mark S. Miller wrote:
I don't see how this implements any of the needed semantics beyond
invoking the
fix trap.

It doesn't.  I totally spaced on that one.  Now done.

http://codereview.appspot.com/4701044/

Reply via email to