v8/test
Alexey Kozyatinskiy 215608f453 debug-evaluate: do not return JSGlobalObject instead of JSGlobalProxy
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/1198764
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55550}
2018-08-31 14:20:39 +00:00
..
benchmarks [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
cctest Revert "[interpreter] Add bytecode for leading array spreads." 2018-08-31 11:43:33 +00:00
common [wasm] Add WasmFeatures to enable/detect features 2018-08-09 10:58:22 +00:00
debugger [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
fuzzer Reland "[wasm] Implement the new API for WebAssembly.instantiateStreaming" 2018-08-14 08:20:19 +00:00
inspector debug-evaluate: do not return JSGlobalObject instead of JSGlobalProxy 2018-08-31 14:20:39 +00:00
intl [Intl] Add unit test to test the order of reading Options 2018-08-30 00:17:18 +00:00
js-perf-test [js-perf] Further reducing test-case size. 2018-08-30 11:41:30 +00:00
memory [builtins] Add embedded stats to --serialization-statistics 2018-07-05 12:33:26 +00:00
message Revert "[interpreter] Add bytecode for leading array spreads." 2018-08-31 11:43:33 +00:00
mjsunit [array] Fix wrong receiver when copying from the prototype chain 2018-08-31 11:58:15 +00:00
mkgrokdump Implement global proposal 2018-08-16 11:07:21 +00:00
mozilla [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 [ESNext] Enable test262 tests for globalThis 2018-08-29 19:43:00 +00:00
torque [torque] only expose safe FixedArray allocation 2018-08-13 15:58:17 +00:00
unittests Revert "[interpreter] Add bytecode for leading array spreads." 2018-08-31 11:43:33 +00:00
wasm-spec-tests [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
webkit Revert "[interpreter] Add bytecode for leading array spreads." 2018-08-31 11:43:33 +00:00
BUILD.gn Reland "[test] Add logic to run tests on Android" 2018-08-10 17:56:12 +00:00