Lines Matching refs:realm
737 Local<Context> realm =
739 Context::Scope context_scope(realm);
773 maybe_result = script->Run(realm);
1202 Local<Context> realm = data->realms_[data->realm_current_].Get(isolate);
1203 Context::Scope context_scope(realm);
1205 resolver->Resolve(realm, module_namespace).ToChecked();
1220 Local<Context> realm = data->realms_[data->realm_current_].Get(isolate);
1221 Context::Scope context_scope(realm);
1224 resolver->Reject(realm, info[0]).ToChecked();
1293 Local<Context> realm = data->realms_[data->realm_current_].Get(isolate);
1294 Context::Scope context_scope(realm);
1297 realm, import_assertions, false);
1305 resolver->Reject(realm, try_catch.Exception()).ToChecked();
1315 ModuleEmbedderData* d = GetModuleDataFromContext(realm);
1321 } else if (!FetchModuleTree(Local<Module>(), realm, absolute_path,
1325 resolver->Reject(realm, try_catch.Exception()).ToChecked();
1330 if (root_module->InstantiateModule(realm, ResolveModuleCallback)
1332 maybe_result = root_module->Evaluate(realm);
1340 resolver->Reject(realm, try_catch.Exception()).ToChecked();
1353 CHECK(Function::New(realm, ModuleResolutionSuccessCallback, edata)
1356 CHECK(Function::New(realm, ModuleResolutionFailureCallback, edata)
1358 result_promise->Then(realm, callback_success, callback_failure)
1366 Local<Context> realm = data->realms_[data->realm_current_].Get(isolate);
1367 Context::Scope context_scope(realm);
1377 ModuleEmbedderData* d = GetModuleDataFromContext(realm);
1383 } else if (!FetchModuleTree(Local<Module>(), realm, absolute_path,
1392 if (root_module->InstantiateModule(realm, ResolveModuleCallback)
1394 maybe_result = root_module->Evaluate(realm);
1433 Local<Context> realm = data->realms_[data->realm_current_].Get(isolate);
1434 Context::Scope context_scope(realm);
1464 Local<Context> realm =
1466 Context::Scope context_scope(realm);
1482 MaybeLocal<Value> maybe_value = JSON::Parse(realm, source);
1620 // module embedder data for the first realm here, but instead do
1623 Global<Context>& realm = data_->realms_[i];
1624 if (realm.IsEmpty()) continue;
1625 DisposeModuleEmbedderData(realm.Get(data_->isolate_));
1666 args.GetIsolate()->ThrowError("Invalid realm index");
1712 // Realm.current() returns the index of the currently active realm.
1721 // Realm.owner(o) returns the index of the realm that created o.
1746 // Realm.global(i) returns the global object of realm i.
1747 // (Note that properties of global objects cannot be read/written cross-realm.)
1773 const char* kGlobalHandleLabel = "d8::realm";
1782 Global<Context>& realm = data->realms_[i];
1783 realm.Reset(isolate, old_realms[i]);
1784 if (!realm.IsEmpty()) {
1785 realm.AnnotateStrongRetainer(kGlobalHandleLabel);
1816 // Realm.create() creates a new realm with a distinct security token
1822 // Realm.createAllowCrossRealmAccess() creates a new realm with the same
1823 // security token as the current realm.
1833 // Realm.navigate(i) creates a new realm with a distinct security token
1834 // in place of realm i.
1842 args.GetIsolate()->ThrowError("Invalid realm index");
1863 // Realm.detachGlobal(i) detaches the global objects of realm i from realm i.
1871 args.GetIsolate()->ThrowError("Invalid realm index");
1876 Local<Context> realm = Local<Context>::New(isolate, data->realms_[index]);
1877 realm->DetachGlobal();
1880 // Realm.dispose(i) disposes the reference to the realm i.
1888 args.GetIsolate()->ThrowError("Invalid realm index");
1894 // Realm.switch(i) switches to the realm i for consecutive interactive inputs.
1903 // Realm.eval(i, s) evaluates s in realm i and returns the result.
1958 // in the realm with the specified index and returns the result.
2015 // Realm.useWebSnapshot(index, snapshot) deserializes the snapshot in the realm