LGTM with nitpicky comments.
http://codereview.appspot.com/10273/diff/1/6 File src/com/google/caja/cajita.js (right): http://codereview.appspot.com/10273/diff/1/6#newcode262 Line 262: // NaNs are the only non-reflective value, i.e., if x !== x, non-refle*x*ive? http://codereview.appspot.com/10273/diff/1/6#newcode1252 Line 1252: * If the property was defined by Caja code, then yes. If it was Complete your favor and s/Caja/Cajita/ here too? http://codereview.appspot.com/10273/diff/1/6#newcode1268 Line 1268: switch (constr && ! isPrototypical(obj) && constr.typeTag___) { Is it Kosher to leave a space after a unary op? (Occurs elsewhere too.) http://codereview.appspot.com/10273/diff/1/6#newcode1282 Line 1282: if (! isRecord(optParent)) { return false; } Rather do -- if (optParent === /*an*/ Object.prototype) { return false; } http://codereview.appspot.com/10273/diff/1/6#newcode1333 Line 1333: function inObjective(name, obj) { Per discussion, maybe we should use another term besides 'objective' since this concept will be important for Cajita as well (use in scope chains during module loading). MarkM suggested "significant". http://codereview.appspot.com/10273/diff/1/6#newcode3101 Line 3101: hasOwnPropertyOf: hasOwnPropertyOf, Do we need the static functions or can we just use the tamed Object.HOP? http://codereview.appspot.com/10273/diff/1/7 File src/com/google/caja/valija-cajita.js (right): http://codereview.appspot.com/10273/diff/1/7#newcode220 Line 220: if (cajita.isFrozen(obj) && typeof obj.call === 'function') { At least a TODO saying we should flag these objects (tamings of xo4a) in a more robust way. MarkM suggests trademarking. http://codereview.appspot.com/10273/diff/1/3 File tests/com/google/caja/parser/quasiliteral/CajitaRewriterTest.java (right): http://codereview.appspot.com/10273/diff/1/3#newcode2139 Line 2139: "try { x=toString; } catch (e) {}" + Spaces around '='. http://codereview.appspot.com/10273/diff/1/2 File tests/com/google/caja/parser/quasiliteral/DefaultValijaRewriterTest.java (right): http://codereview.appspot.com/10273/diff/1/2#newcode414 Line 414: assertConsistent("[ (typeof noSuchGlobal), (typeof 's')," + According to MarkM: the 1st 2 entries are a copy/paste error. http://codereview.appspot.com/10273 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to http://groups.google.com/group/google-caja-discuss To unsubscribe, email [email protected] -~----------~----~----~----~------~----~------~--~---
