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#newcode3563
src/com/google/caja/es53.js:3563: var keys = ownKeys(O), len =
keys.length;
I think both freeze___ and seal___ look correct. But why do they loop
through their own properties in different ways? Since they both need to
make the same set of properties non-configurable, it would make the
equivalence easier to understand if they used the same iteration logic.

Likewise for minor but unnecessary naming differences like "P" vs "j",
"O" vs "this", and turning extensibility off at the beginning vs the
end.

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

Reply via email to