• dcheng's avatar
    Fix receiver checks for v8::Function on a remote context receiver. · 96eda1f7
    dcheng authored
    v8 allows the embedder to specify a global template to use when
    creating a new context. However, v8 does not use the supplied
    template directly when creating the global proxy: it creates a
    unique template for each global proxy. However, this is problematic
    for remote contexts: functions cannot use strict receiver checks
    with the remote context, as the global template will never match
    the global proxy.
    
    To fix this, remote contexts now also include a remote global
    object in the prototype chain that is instantiated with the global
    template. This mirrors the way the global proxy is configured for a
    full v8 context, and allows strict receiver checks to work.
    
    BUG=527190
    
    Review-Url: https://codereview.chromium.org/2677653002
    Cr-Commit-Position: refs/heads/master@{#43361}
    96eda1f7
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...