Lines Matching defs:context
247 ->NewInstance(env->context())
264 handle->read_offset_ = args[1]->IntegerValue(env->context()).FromJust();
266 handle->read_length_ = args[2]->IntegerValue(env->context()).FromJust();
313 v8::Local<v8::Context> context,
315 BindingData* bd = Realm::GetBindingData<BindingData>(context);
383 Context::Scope context_scope(env()->context());
387 resolver->Resolve(env()->context(), Undefined(isolate)).Check();
393 Context::Scope context_scope(env()->context());
397 resolver->Reject(env()->context(), reason).Check();
438 Local<Context> context = env()->context();
451 auto maybe_resolver = Promise::Resolver::New(context);
458 ->NewInstance(env()->context()).ToLocal(&close_req_obj)) {
558 env()->context(), env()->handle_string(), read_wrap->object()));
565 ->NewInstance(env()->context())
718 context_scope_(wrap->env()->context()) {
734 // TODO(joyeecheung): create a normal context object, and
735 // construct the actual errors in the JS land using the context.
736 // The context should include fds for some fs APIs, currently they are
738 // can be put into the context before the binding is even invoked,
1361 ctx->Set(env->context(), env->error_string(), error).Check();
1693 v8::Local<v8::Context> context = env->context();
1696 ctx_obj->Set(context,
1699 ctx_obj->Set(context,
1744 ctx->Set(env->context(), env->error_string(), error).Check();
1795 ctx->Set(env->context(), env->error_string(), error).Check();
1855 ctx->Set(env->context(), env->errno_string(),
1857 ctx->Set(env->context(), env->syscall_string(),
1870 ctx->Set(env->context(), env->error_string(), error).Check();
2087 Local<Value> chunk = chunks->Get(env->context(), i).ToLocalChecked();
2294 Local<Value> buffer = buffers->Get(env->context(), i).ToLocalChecked();
2604 ctx->Set(env->context(), env->error_string(), error).Check();
2627 Local<Context> context = realm->context();
2628 wrap->Set(context,
2633 wrap->Set(context,
2638 wrap->Set(context,
2643 wrap->Set(context,
2649 void BindingData::Deserialize(Local<Context> context,
2654 HandleScope scope(context->GetIsolate());
2655 Realm* realm = Realm::GetCurrent(context);
2656 BindingData* binding = realm->AddBindingData<BindingData>(context, holder);
2660 bool BindingData::PrepareForSerialization(Local<Context> context,
2683 Local<Context> context,
2685 Realm* realm = Realm::GetCurrent(context);
2689 realm->AddBindingData<BindingData>(context, target);
2692 SetMethod(context, target, "access", Access);
2693 SetMethod(context, target, "close", Close);
2694 SetMethod(context, target, "open", Open);
2695 SetMethod(context, target, "openFileHandle", OpenFileHandle);
2696 SetMethod(context, target, "read", Read);
2697 SetMethod(context, target, "readBuffers", ReadBuffers);
2698 SetMethod(context, target, "fdatasync", Fdatasync);
2699 SetMethod(context, target, "fsync", Fsync);
2700 SetMethod(context, target, "rename", Rename);
2701 SetMethod(context, target, "ftruncate", FTruncate);
2702 SetMethod(context, target, "rmdir", RMDir);
2703 SetMethod(context, target, "mkdir", MKDir);
2704 SetMethod(context, target, "readdir", ReadDir);
2705 SetMethod(context, target, "internalModuleReadJSON", InternalModuleReadJSON);
2706 SetMethod(context, target, "internalModuleStat", InternalModuleStat);
2707 SetMethod(context, target, "stat", Stat);
2708 SetMethod(context, target, "lstat", LStat);
2709 SetMethod(context, target, "fstat", FStat);
2710 SetMethod(context, target, "statfs", StatFs);
2711 SetMethod(context, target, "link", Link);
2712 SetMethod(context, target, "symlink", Symlink);
2713 SetMethod(context, target, "readlink", ReadLink);
2714 SetMethod(context, target, "unlink", Unlink);
2715 SetMethod(context, target, "writeBuffer", WriteBuffer);
2716 SetMethod(context, target, "writeBuffers", WriteBuffers);
2717 SetMethod(context, target, "writeString", WriteString);
2718 SetMethod(context, target, "realpath", RealPath);
2719 SetMethod(context, target, "copyFile", CopyFile);
2721 SetMethod(context, target, "chmod", Chmod);
2722 SetMethod(context, target, "fchmod", FChmod);
2724 SetMethod(context, target, "chown", Chown);
2725 SetMethod(context, target, "fchown", FChown);
2726 SetMethod(context, target, "lchown", LChown);
2728 SetMethod(context, target, "utimes", UTimes);
2729 SetMethod(context, target, "futimes", FUTimes);
2730 SetMethod(context, target, "lutimes", LUTimes);
2732 SetMethod(context, target, "mkdtemp", Mkdtemp);
2735 ->Set(context,
2749 SetConstructorFunction(context, target, "FSReqCallback", fst);
2781 SetConstructorFunction(context, target, "FileHandle", fd);
2793 target->Set(context,