Lines Matching defs:object
46 // should be treated as a regular JS object. Used to transfer process.env.
107 return host_objects_[id]->object(isolate);
111 Local<Value> object;
112 if (!deserializer->ReadValue(context).ToLocal(&object))
114 CHECK(object->IsObject());
115 return scope.Escape(object.As<Object>());
158 for (BaseObjectPtr<BaseObject> object : host_objects) {
159 if (!object) continue;
164 object->Detach();
175 // If we gather a list of all message ports, and this transferred object
181 Local<Object> obj = host_objects[i]->object();
303 Maybe<bool> WriteHostObject(Isolate* isolate, Local<Object> object) override {
304 if (env_->base_object_ctor_template()->HasInstance(object)) {
306 BaseObjectPtr<BaseObject> { Unwrap<BaseObject>(object) });
309 // Convert process.env to a regular object.
312 env_proxy_ctor_template->HasInstance(object)) {
314 // TODO(bnoordhuis) Prototype-less object in case process.env contains
373 // transferred. This could e.g. be a public JS wrapper object, such as a
709 // If the existing MessagePortData object had pending messages, this is
759 object(env()->isolate())->GetCreationContext().ToLocalChecked();
875 Local<Object> obj = object(isolate);
917 Local<Value> object) {
918 if (!object->IsObject()) return Just(false);
920 if (object->IsArray()) {
921 Local<Array> arr = object.As<Array>();
933 if (!object.As<Object>()->Get(context, Symbol::GetIterator(isolate))
938 if (!iterator_method.As<Function>()->Call(context, object, 0, nullptr)
982 // options object.
1008 // Even if the backing MessagePort object has already been deleted, we still
1082 port->object()->GetCreationContext().ToLocalChecked(),
1118 args.GetReturnValue().Set(target->object());
1174 if (!object()->Has(env()->context(),
1193 // which should return an object with `data` and `deserializeInfo` properties;
1202 if (!object()->Get(context, method_name).ToLocal(&method)) {
1208 context, object(), 0, nullptr).ToLocal(&result_v)) {
1242 if (!object()->Get(context, method_name).ToLocal(&method)) {
1249 context, object(), 0, nullptr).ToLocal(&list_v)) {
1276 if (!object()->Get(context, method_name).ToLocal(&method)) {
1281 if (method.As<Function>()->Call(context, object(), 1, &data).IsEmpty()) {
1296 // Create the JS wrapper object that will later be filled with data passed to
1298 // we need to create an object with the right prototype and internal fields,
1460 args.This()->Set(context, env->port1_string(), port1->object())
1462 args.This()->Set(context, env->port2_string(), port2->object())
1474 args.GetReturnValue().Set(port->object());