libraries/v8/runtime.cc
// Change the state of break on exceptions.
// args[0]: Enum value indicating whether to affect caught/uncaught exceptions.
// args[1]: Boolean indicating on/off.
Change the state of break on exceptions.
args[0]: Enum value indicating whether to affect caught/uncaught exceptions.
args[1]: Boolean indicating on/off.
Change the state of break on exceptions . args [ 0 ] : Enum value indicating whether to affect caught / uncaught exceptions . args [ 1 ] : Boolean indicating on / off .
RUNTIME_FUNCTION(MaybeObject*, Runtime_ChangeBreakOnException) {
  HandleScope scope(isolate);
  ASSERT(args.length() == 2);
  RUNTIME_ASSERT(args[0]->IsNumber());
  CONVERT_BOOLEAN_ARG_CHECKED(enable, 1);
  ExceptionBreakType type =
      static_cast<ExceptionBreakType>(NumberToUint32(args[0]));
  isolate->debug()->ChangeBreakOnException(type, enable);
  return isolate->heap()->undefined_value();
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_ChangeBreakOnException ) { HandleScope scope ( isolate ) ; ASSERT ( args . length ( ) == 2 ) ; RUNTIME_ASSERT ( args [ 0 ] -> IsNumber ( ) ) ; CONVERT_BOOLEAN_ARG_CHECKED ( enable , 1 ) ; ExceptionBreakType type = static_cast < ExceptionBreakType > ( NumberToUint32 ( args [ 0 ] ) ) ; isolate -> debug ( ) -> ChangeBreakOnException ( type , enable ) ; return isolate -> heap ( ) -> undefined_value ( ) ; }
Change the state of break on exceptions.
Change the state of break on exceptions .
// If the number doesn't match an enum value, the ChangeBreakOnException // function will default to affecting caught exceptions. // Update break point state.