Lines Matching defs:context
91 static MaybeLocal<Value> WASIException(Local<Context> context,
94 Isolate* isolate = context->GetIsolate();
95 Environment* env = Environment::GetCurrent(context);
105 if (!Exception::Error(js_msg)->ToObject(context).ToLocal(&e))
108 if (e->Set(context,
111 e->Set(context, env->code_string(), js_code).IsNothing() ||
112 e->Set(context, env->syscall_string(), js_syscall).IsNothing()) {
129 if (!WASIException(env->context(), err, "uvwasi_init").ToLocal(&exception))
168 Local<Context> context = env->context();
177 options.in = stdio->Get(context, 0).ToLocalChecked()->
178 Int32Value(context).FromJust();
179 options.out = stdio->Get(context, 1).ToLocalChecked()->
180 Int32Value(context).FromJust();
181 options.err = stdio->Get(context, 2).ToLocalChecked()->
182 Int32Value(context).FromJust();
190 auto arg = argv->Get(context, i).ToLocalChecked();
201 auto pair = env_pairs->Get(context, i).ToLocalChecked();
215 auto mapped = preopens->Get(context, i).ToLocalChecked();
216 auto real = preopens->Get(context, i + 1).ToLocalChecked();
1697 Local<Context> context,
1699 Environment* env = Environment::GetCurrent(context);
1761 SetConstructorFunction(context, target, "WASI", tmpl);