Lines Matching defs:context
55 Local<Context> context = env->context();
68 context, KeyCollectionMode::kOwnOnly,
221 bool WeakReference::PrepareForSerialization(Local<Context> context,
238 Local<Object> target = target_.Get(context->GetIsolate());
239 target_index_ = creator->AddData(context, target);
254 void WeakReference::Deserialize(Local<Context> context,
259 HandleScope scope(context->GetIsolate());
264 target = context->GetDataFromSnapshotOnce<Object>(weak_info->target)
268 Realm::GetCurrent(context), holder, target, weak_info->reference_count);
307 if (!args[0]->Int32Value(env->context()).To(&fd)) return;
347 int64_t start = args[1]->IntegerValue(env->context()).FromJust();
394 Local<Context> context,
396 Environment* env = Environment::GetCurrent(context);
409 ->Set(context,
411 tmpl->NewInstance(context).ToLocalChecked())
419 ->Set(context, \
431 ->Set(context, \
444 target->Set(context, env->constants_string(), constants).Check();
448 context, target, "getPromiseDetails", GetPromiseDetails);
449 SetMethodNoSideEffect(context, target, "getProxyDetails", GetProxyDetails);
451 context, target, "getCallerLocation", GetCallerLocation);
453 context, target, "isArrayBufferDetached", IsArrayBufferDetached);
454 SetMethodNoSideEffect(context, target, "previewEntries", PreviewEntries);
456 context, target, "getOwnNonIndexProperties", GetOwnNonIndexProperties);
458 context, target, "getConstructorName", GetConstructorName);
459 SetMethodNoSideEffect(context, target, "getExternalValue", GetExternalValue);
460 SetMethod(context, target, "sleep", Sleep);
463 context, target, "arrayBufferViewHasBuffer", ArrayBufferViewHasBuffer);
468 ->Set(context,
481 SetConstructorFunction(context, target, "WeakReference", weak_ref);
483 SetMethod(context, target, "guessHandleType", GuessHandleType);
485 SetMethodNoSideEffect(context, target, "toUSVString", ToUSVString);