Index: test/cctest/test-debug.cc |
diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc |
index 192dce7b9f635fa9c7f421bf2729bb3e1244635f..cfe63f216d599a5231f3332e786d599f9cc0cd91 100644 |
--- a/test/cctest/test-debug.cc |
+++ b/test/cctest/test-debug.cc |
@@ -7882,37 +7882,6 @@ TEST(DebugPromiseRejectedByCallback) { |
} |
-TEST(DebugBreakOnExceptionInObserveCallback) { |
- i::FLAG_harmony_object_observe = true; |
- DebugLocalContext env; |
- v8::Isolate* isolate = env->GetIsolate(); |
- v8::HandleScope scope(isolate); |
- v8::Debug::SetDebugEventListener(isolate, &DebugEventCountException); |
- v8::Local<v8::Context> context = env.context(); |
- // Break on uncaught exception |
- ChangeBreakOnException(false, true); |
- exception_event_counter = 0; |
- |
- v8::Local<v8::FunctionTemplate> fun = |
- v8::FunctionTemplate::New(isolate, ThrowCallback); |
- CHECK(env->Global() |
- ->Set(context, v8_str("fun"), |
- fun->GetFunction(context).ToLocalChecked()) |
- .FromJust()); |
- |
- CompileRun( |
- "var obj = {};" |
- "var callbackRan = false;" |
- "Object.observe(obj, function() {" |
- " callbackRan = true;" |
- " throw Error('foo');" |
- "});" |
- "obj.prop = 1"); |
- CHECK(CompileRun("callbackRan")->BooleanValue(context).FromJust()); |
- CHECK_EQ(1, exception_event_counter); |
-} |
- |
- |
static void DebugHarmonyScopingListener( |
const v8::Debug::EventDetails& event_details) { |
v8::DebugEvent event = event_details.GetEvent(); |