• 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
..
api Loading commit data...
base Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
wasm Loading commit data...
zone Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
cancelable-tasks-unittest.cc Loading commit data...
char-predicates-unittest.cc Loading commit data...
counters-unittest.cc Loading commit data...
eh-frame-iterator-unittest.cc Loading commit data...
eh-frame-writer-unittest.cc Loading commit data...
locked-queue-unittest.cc Loading commit data...
object-unittest.cc Loading commit data...
register-configuration-unittest.cc Loading commit data...
run-all-unittests.cc Loading commit data...
source-position-table-unittest.cc Loading commit data...
test-utils.cc Loading commit data...
test-utils.h Loading commit data...
unicode-unittest.cc Loading commit data...
unittests.gyp Loading commit data...
unittests.isolate Loading commit data...
unittests.status Loading commit data...
value-serializer-unittest.cc Loading commit data...