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/+/cfb182b8d5cdc104ba1e9c09125c918b00e850bb
Patch Set 1 #
Messages
Total messages: 2 (1 generated)
|