libraries/v8/runtime.cc
// Adds a JavaScript function as a debug event listener.
// args[0]: debug event listener function to set or null or undefined for
//          clearing the event listener function
// args[1]: object supplied during callback
Adds a JavaScript function as a debug event listener.
args[0]: debug event listener function to set or null or undefined for
clearing the event listener function
args[1]: object supplied during callback
Adds a JavaScript function as a debug event listener . args [ 0 ] : debug event listener function to set or null or undefined for clearing the event listener function args [ 1 ] : object supplied during callback
RUNTIME_FUNCTION(MaybeObject*, Runtime_SetDebugEventListener) {
  SealHandleScope shs(isolate);
  ASSERT(args.length() == 2);
  RUNTIME_ASSERT(args[0]->IsJSFunction() ||
                 args[0]->IsUndefined() ||
                 args[0]->IsNull());
  Handle<Object> callback = args.at<Object>(0);
  Handle<Object> data = args.at<Object>(1);
  isolate->debugger()->SetEventListener(callback, data);
  return isolate->heap()->undefined_value();
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_SetDebugEventListener ) { SealHandleScope shs ( isolate ) ; ASSERT ( args . length ( ) == 2 ) ; RUNTIME_ASSERT ( args [ 0 ] -> IsJSFunction ( ) || args [ 0 ] -> IsUndefined ( ) || args [ 0 ] -> IsNull ( ) ) ; Handle < Object > callback = args . at < Object > ( 0 ) ; Handle < Object > data = args . at < Object > ( 1 ) ; isolate -> debugger ( ) -> SetEventListener ( callback , data ) ; return isolate -> heap ( ) -> undefined_value ( ) ; }
Adds a JavaScript function as a debug event listener.
Adds a JavaScript function as a debug event listener .