libraries/v8/runtime.cc
// Create a plain JSObject which materializes the scope for the specified
// catch context.
Create a plain JSObject which materializes the scope for the specified
catch context.
Create a plain JSObject which materializes the scope for the specified catch context .
static Handle<JSObject> MaterializeCatchScope(Isolate* isolate,
                                              Handle<Context> context) {
  ASSERT(context->IsCatchContext());
  Handle<String> name(String::cast(context->extension()));
  Handle<Object> thrown_object(context->get(Context::THROWN_OBJECT_INDEX),
                               isolate);
  Handle<JSObject> catch_scope =
      isolate->factory()->NewJSObject(isolate->object_function());
  RETURN_IF_EMPTY_HANDLE_VALUE(
      isolate,
      SetProperty(isolate,
                  catch_scope,
                  name,
                  thrown_object,
                  NONE,
                  kNonStrictMode),
      Handle<JSObject>());
  return catch_scope;
}
static Handle < JSObject > MaterializeCatchScope ( Isolate * isolate , Handle < Context > context ) { ASSERT ( context -> IsCatchContext ( ) ) ; Handle < String > name ( String :: cast ( context -> extension ( ) ) ) ; Handle < Object > thrown_object ( context -> get ( Context :: THROWN_OBJECT_INDEX ) , isolate ) ; Handle < JSObject > catch_scope = isolate -> factory ( ) -> NewJSObject ( isolate -> object_function ( ) ) ; RETURN_IF_EMPTY_HANDLE_VALUE ( isolate , SetProperty ( isolate , catch_scope , name , thrown_object , NONE , kNonStrictMode ) , Handle < JSObject > ( ) ) ; return catch_scope ; }
Create a plain JSObject which materializes the scope for the specified
catch context.
Create a plain JSObject which materializes the scope for the specified catch context .