libraries/v8/runtime.cc
// Create a plain JSObject which materializes the module scope for the specified
// module context.
Create a plain JSObject which materializes the module scope for the specified
module context.
Create a plain JSObject which materializes the module scope for the specified module context .
static Handle<JSObject> MaterializeModuleScope(
    Isolate* isolate,
    Handle<Context> context) {
  ASSERT(context->IsModuleContext());
  Handle<ScopeInfo> scope_info(ScopeInfo::cast(context->extension()));
  Handle<JSObject> module_scope =
      isolate->factory()->NewJSObject(isolate->object_function());
  if (!ScopeInfo::CopyContextLocalsToScopeObject(
          scope_info, context, module_scope)) {
    return Handle<JSObject>();
  }
  return module_scope;
}
static Handle < JSObject > MaterializeModuleScope ( Isolate * isolate , Handle < Context > context ) { ASSERT ( context -> IsModuleContext ( ) ) ; Handle < ScopeInfo > scope_info ( ScopeInfo :: cast ( context -> extension ( ) ) ) ; Handle < JSObject > module_scope = isolate -> factory ( ) -> NewJSObject ( isolate -> object_function ( ) ) ; if ( ! ScopeInfo :: CopyContextLocalsToScopeObject ( scope_info , context , module_scope ) ) { return Handle < JSObject > ( ) ; } return module_scope ; }
Create a plain JSObject which materializes the module scope for the specified
module context.
Create a plain JSObject which materializes the module scope for the specified module context .
// Allocate and initialize a JSObject with all the members of the debugged // module. // Fill all context locals.