Description* Patch Object.freeze to explicitly defineProperty an array's .length.
This prevents some array mutation methods from modifying frozen
arrays, including .push(), and avoids the need to patch .push()
itself.
* Patch Array.prototype.{shift,unshift,splice} which may mutate frozen
arrays.
* Adjust testRepairReport logic so that a problem configured doNotRepair
is not considered to be 'accidentally repaired' if the same repair
was used elsewhere.
Fixes <https://code.google.com/p/google-caja/issues/detail?id=1816>.
@r5551
Patch Set 1 #
Total comments: 10
Patch Set 2 : ES5 repairs for Chrome array mutability bugs. #
MessagesTotal messages: 6
|
||||||||||||||||||||||||||||