DescriptionUse correct creation context during Iterable.forEach iteration
Use |thisValue| instead of |scriptState->context()->Global()|, since this
is simpler and since Global() actually returns a WindowProxy object that
may change and become incorrect to use as creation context depending on
what the callback function does.
BUG=605910
Review URL: https://codereview.chromium.org/1918763002
Cr-Commit-Position: refs/heads/master@{#389785}
(cherry picked from commit 0cd7a9f853e3cb7c035b4ab9e07a503552267f9d)
Committed: https://chromium.googlesource.com/chromium/src/+/4fdeff55d9188e4490e71305f38ee0e62d0b50c6
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|