• Alexey Kozyatinskiy's avatar
    debug-evaluate: do not return JSGlobalObject instead of JSGlobalProxy · 215608f4
    Alexey Kozyatinskiy authored
    DebugEvaluate contains code since 2009 that bypasses JSGlobalProxy and
    returns JSGlobalObject when result of expression is global proxy.
    This behavior may be dangerous:
    - JSGlobalObject does not perform security checks,
    - some parts of V8 code do not ready for JSGlobalObject, e.g.,
      SetHashAndUpdateProperties function will crash on DCHECK if we will
      try to store JSGlobalObject to map.
    
    At the same time it looks like there is no any valid use case for it.
    
    R=yangguo@chromium.org
    
    Bug: none
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: Ib0e35d5ae9ef47318c866e44c5c6856e34ed05a5
    Reviewed-on: https://chromium-review.googlesource.com/1198764Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#55550}
    215608f4
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...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...