http://codereview.appspot.com/4701044/diff/29001/src/com/google/caja/es53.js File src/com/google/caja/es53.js (right):
http://codereview.appspot.com/4701044/diff/29001/src/com/google/caja/es53.js#newcode4827 src/com/google/caja/es53.js:4827: if (!h || typeof h !== 'object') { Can a handler not be a function? http://codereview.appspot.com/4701044/diff/29001/src/com/google/caja/es53.js#newcode4839 src/com/google/caja/es53.js:4839: ' to be a function, not ' + trapType); (typeof X === 'function') does not test whether X is a function; it tests whether X is callable. Go figure ;). http://codereview.appspot.com/4701044/diff/29001/src/com/google/caja/es53.js#newcode4856 src/com/google/caja/es53.js:4856: proxy = beget(proto); We need to validate that proto, and all the objects it inherits from, are non-extensible non-proxies. Otherwise, our proxy implementation technique doesn't work. And even if we, there's one more thing we need to do here in order for our proxy implementation to work: We need to override the fastpath flags of all inherited properties to set the fastpath to false. That way, an attempt to access those properties will not bypass the proxy intercepts. http://codereview.appspot.com/4701044/
