v8/test/inspector
Yang Guo 7e5cac2cf3 Make termination exception more consistent.
Termination exceptions tear down V8 to the bottom-most V8 call. If there is a
v8::TryCatch scope around that call, it returns true for HasTerminated() and
HasCaught(). However, Isolate::IsExecutionTerminating() returns false and we
can call into V8 from still inside the v8::TryCatch scope.

Changes that this patch introduces:
 - You need to leave the v8::TryCatch scope around the bottom-most call to
   reset the termination state, in order to resume.
 - Explicitly check for termination exception and reporting it through the
   DevTools protocol after Runtime.evaluate and Debugger.evaluateOnCallFrame.

Bug: v8:8455
Change-Id: I1f36f7a365985469813c2619bf16f18ee69aa4b8
Reviewed-on: https://chromium-review.googlesource.com/c/1337582
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57963}
2018-11-30 11:33:07 +00:00
..
console Revert "[inspector] RemoteObject.description should be empty for primitive type" 2018-05-31 18:52:08 +00:00
cpu-profiler Revert "[inspector] RemoteObject.description should be empty for primitive type" 2018-05-31 18:52:08 +00:00
debugger Make termination exception more consistent. 2018-11-30 11:33:07 +00:00
heap-profiler [heap profiler] Plumb samples through the protocol. 2018-10-23 00:12:01 +00:00
runtime [inspector] console.table should not crash on empty preview 2018-11-21 21:21:24 +00:00
sessions Use Isolate::GetEnteredOrMicrotaskContext instead of GetEnteredContext 2018-11-13 13:58:00 +00:00
type-profiler [test] Remove dead flags from some tests. 2018-10-15 10:00:12 +00:00
BUILD.gn reland: inspector: move injected script source to native 2018-10-31 17:47:58 +00:00
DEPS [inspector] introduce limit for amount of stored async stacks 2016-12-18 17:04:40 +00:00
inspector-test.cc Reland "[builtins] Support embedded builtins in nosnapshot builds" 2018-11-15 13:56:25 +00:00
inspector.status [tests] Disable tests on nosnap that have old-space limits 2018-11-28 16:26:16 +00:00
isolate-data.cc Use Isolate::GetEnteredOrMicrotaskContext instead of GetEnteredContext 2018-11-13 13:58:00 +00:00
isolate-data.h [wasm] fix clear context group for wasm 2018-11-06 22:27:17 +00:00
json-parse-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
json-parse.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
OWNERS Add COMPONENT tags to OWNERS files where appropriate 2017-05-22 10:15:28 +00:00
protocol-test.js [wasm] fix clear context group for wasm 2018-11-06 22:27:17 +00:00
task-runner.cc Cleanup: Use std::atomic<T> instead of base::AtomicNumber<T> in TaskRunner. 2018-07-12 07:22:06 +00:00
task-runner.h [cleanup] Refactor inspector to use default members. 2018-09-18 09:13:59 +00:00
testcfg.py reland: inspector: move injected script source to native 2018-10-31 17:47:58 +00:00