DescriptionDo an access check before compiling code via eval()
Similarly to how we check whether the entered context has access to the target
context when invoking the function constructor, we should check the involved
contexts before invoking eval().
I forgot to add this in the initial CL that adds the check for the function
constructor. Move the code to a common location, and use it for the GlobalEval
builtin as well.
BUG=chromium:541703
R=verwaest@chromium.org
Committed: https://crrev.com/2f8d4f44257f24e19b3cc98e8ad0de50a457c4cd
Cr-Commit-Position: refs/heads/master@{#38277}
Patch Set 1 #Patch Set 2 : updates #Patch Set 3 : updates #
Messages
Total messages: 23 (15 generated)
|