File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1442,7 +1442,7 @@ void ModuleWrap::SetInitializeImportMetaObjectCallback(
14421442 HostInitializeImportMetaObjectCallback);
14431443}
14441444
1445- MaybeLocal<Value > ModuleWrap::SyntheticModuleEvaluationStepsCallback (
1445+ MaybeLocal<Promise > ModuleWrap::SyntheticModuleEvaluationStepsCallback (
14461446 Local<Context> context, Local<Module> module ) {
14471447 Environment* env = Environment::GetCurrent (context);
14481448 Isolate* isolate = env->isolate ();
@@ -1466,16 +1466,16 @@ MaybeLocal<Value> ModuleWrap::SyntheticModuleEvaluationStepsCallback(
14661466 CHECK (!try_catch.Message ().IsEmpty ());
14671467 CHECK (!try_catch.Exception ().IsEmpty ());
14681468 try_catch.ReThrow ();
1469- return MaybeLocal<Value >();
1469+ return MaybeLocal<Promise >();
14701470 }
14711471
14721472 Local<Promise::Resolver> resolver;
14731473 if (!Promise::Resolver::New (context).ToLocal (&resolver)) {
1474- return MaybeLocal<Value >();
1474+ return MaybeLocal<Promise >();
14751475 }
14761476
14771477 if (resolver->Resolve (context, Undefined (isolate)).IsNothing ()) {
1478- return MaybeLocal<Value >();
1478+ return MaybeLocal<Promise >();
14791479 }
14801480 return resolver->GetPromise ();
14811481}
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ class ModuleWrap : public BaseObject {
185185 const v8::FunctionCallbackInfo<v8::Value>& args);
186186 static void SetInitializeImportMetaObjectCallback (
187187 const v8::FunctionCallbackInfo<v8::Value>& args);
188- static v8::MaybeLocal<v8::Value > SyntheticModuleEvaluationStepsCallback (
188+ static v8::MaybeLocal<v8::Promise > SyntheticModuleEvaluationStepsCallback (
189189 v8::Local<v8::Context> context, v8::Local<v8::Module> module );
190190 static void SetSyntheticExport (
191191 const v8::FunctionCallbackInfo<v8::Value>& args);
You can’t perform that action at this time.
0 commit comments