Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 69e0a2e02cbbf4402fb765aecd64d0e7349f28a6..eed39a1cabd5b3eb83f383299171d48186a8cb73 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -7374,9 +7374,6 @@ static void DebugBreakTriggerTerminate( |
// Wait for at most 2 seconds for the terminate request. |
CHECK(terminate_fired_semaphore.WaitFor(v8::base::TimeDelta::FromSeconds(2))); |
terminate_already_fired = true; |
- v8::internal::Isolate* isolate = |
- v8::Utils::OpenHandle(*event_details.GetEventContext())->GetIsolate(); |
- CHECK(isolate->stack_guard()->CheckTerminateExecution()); |
} |
@@ -7403,6 +7400,8 @@ TEST(DebugBreakOffThreadTerminate) { |
v8::Debug::SetDebugEventListener(DebugBreakTriggerTerminate); |
TerminationThread terminator(isolate); |
terminator.Start(); |
+ v8::TryCatch try_catch; |
v8::Debug::DebugBreak(isolate); |
CompileRun("while (true);"); |
+ CHECK(try_catch.HasTerminated()); |
} |