libraries/v8/runtime.cc
// Retrieve the stack trace.  This is the raw stack trace that yet has to
// be formatted.  Since we only need this once, clear it afterwards.
Retrieve the stack trace.  This is the raw stack trace that yet has to
be formatted.  Since we only need this once, clear it afterwards.
Retrieve the stack trace . This is the raw stack trace that yet has to be formatted . Since we only need this once clear it afterwards .
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetAndClearOverflowedStackTrace) {
  HandleScope scope(isolate);
  ASSERT_EQ(args.length(), 1);
  CONVERT_ARG_HANDLE_CHECKED(JSObject, error_object, 0);
  Handle<String> key = isolate->factory()->hidden_stack_trace_string();
  Handle<Object> result(error_object->GetHiddenProperty(*key), isolate);
  if (result->IsTheHole()) return isolate->heap()->undefined_value();
  RUNTIME_ASSERT(result->IsJSArray() || result->IsUndefined());
  JSObject::DeleteHiddenProperty(error_object, key);
  return *result;
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_GetAndClearOverflowedStackTrace ) { HandleScope scope ( isolate ) ; ASSERT_EQ ( args . length ( ) , 1 ) ; CONVERT_ARG_HANDLE_CHECKED ( JSObject , error_object , 0 ) ; Handle < String > key = isolate -> factory ( ) -> hidden_stack_trace_string ( ) ; Handle < Object > result ( error_object -> GetHiddenProperty ( * key ) , isolate ) ; if ( result -> IsTheHole ( ) ) return isolate -> heap ( ) -> undefined_value ( ) ; RUNTIME_ASSERT ( result -> IsJSArray ( ) || result -> IsUndefined ( ) ) ; JSObject :: DeleteHiddenProperty ( error_object , key ) ; return * result ; }
Retrieve the stack trace.
Retrieve the stack trace .