Descriptiontest_FREEZING_BREAKS_PROTOTYPES correctly tested for the problem, but
did it in a frame other than the repaired one, so it failed to confirm
the repair was successful. Unfortunately, there is no way to do this
accurately at repairES5 time since the problem is only exhibited once
Object.prototype is frozen. Instead,
* The test applies the repair to the throwaway frame before testing, if
and only if the repair has already been applied to this frame, thus
satisfying the test-and-repair logic.
* startSES, as a special case, executes the test after Object.prototype
is frozen, and the test then actually tests the SES frame, thus
ensuring that our repair worked.
The whole thing is a horrible kludge and we should rip it out as soon
as we no longer need to support repairing this problem.
@r5360
Patch Set 1 #
MessagesTotal messages: 11
|
||||||||||||||||||||||||||||