• 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...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...