| Index: test/cctest/test-debug.cc
|
| ===================================================================
|
| --- test/cctest/test-debug.cc (revision 6941)
|
| +++ test/cctest/test-debug.cc (working copy)
|
| @@ -3738,7 +3738,7 @@
|
| v8::V8::AddMessageListener(MessageCallbackCount);
|
| v8::Debug::SetDebugEventListener(DebugEventCounter);
|
|
|
| - // Initial state should be break on uncaught exception.
|
| + // Initial state should be no break on exceptions.
|
| DebugEventCounterClear();
|
| MessageCallbackCountClear();
|
| caught->Call(env->Global(), 0, NULL);
|
| @@ -3746,8 +3746,8 @@
|
| CHECK_EQ(0, uncaught_exception_hit_count);
|
| CHECK_EQ(0, message_callback_count);
|
| notCaught->Call(env->Global(), 0, NULL);
|
| - CHECK_EQ(1, exception_hit_count);
|
| - CHECK_EQ(1, uncaught_exception_hit_count);
|
| + CHECK_EQ(0, exception_hit_count);
|
| + CHECK_EQ(0, uncaught_exception_hit_count);
|
| CHECK_EQ(1, message_callback_count);
|
|
|
| // No break on exception
|
| @@ -3867,6 +3867,9 @@
|
| v8::HandleScope scope;
|
| DebugLocalContext env;
|
|
|
| + // For this test, we want to break on uncaught exceptions:
|
| + ChangeBreakOnException(false, true);
|
| +
|
| v8::internal::Isolate::Current()->TraceException(false);
|
|
|
| // Create a function for checking the function when hitting a break point.
|
| @@ -3918,6 +3921,9 @@
|
| v8::HandleScope scope;
|
| DebugLocalContext env;
|
|
|
| + // For this test, we want to break on uncaught exceptions:
|
| + ChangeBreakOnException(false, true);
|
| +
|
| // Create a function for checking the function when hitting a break point.
|
| frame_function_name = CompileFunction(&env,
|
| frame_function_name_source,
|
| @@ -6573,6 +6579,10 @@
|
| TEST(ExceptionMessageWhenMessageHandlerIsReset) {
|
| v8::HandleScope scope;
|
| DebugLocalContext env;
|
| +
|
| + // For this test, we want to break on uncaught exceptions:
|
| + ChangeBreakOnException(false, true);
|
| +
|
| exception_event_count = 0;
|
| const char* script = "function f() {throw new Error()};";
|
|
|
|
|