Skip to content

Commit bbf9573

Browse files
committed
module: mark evaluation rejection in require(esm) as handled
nodejs/node#56122
1 parent dc0c67e commit bbf9573

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

patches/node/chore_expose_importmoduledynamically_and.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ index 99061e62976e7cb24be81e8632b0e21d1e9adf9a..bbc9311c059e8ab0328c5f92b21a6be5
4040

4141
/**
4242
diff --git a/src/module_wrap.cc b/src/module_wrap.cc
43-
index 8be6dbd1d0262ccbb2318de1d98e344e9b21a510..1509fc54fe9767e101b107509b4b2d6c821ce95d 100644
43+
index 649ec428e2dd6fbf0082b3f1ba9fdfbfab892a94..168912fe6ede3b71ab3029c292ba430915fd79d8 100644
4444
--- a/src/module_wrap.cc
4545
+++ b/src/module_wrap.cc
46-
@@ -823,7 +823,7 @@ MaybeLocal<Module> ModuleWrap::ResolveModuleCallback(
46+
@@ -832,7 +832,7 @@ MaybeLocal<Module> ModuleWrap::ResolveModuleCallback(
4747
return module->module_.Get(isolate);
4848
}
4949

5050
-static MaybeLocal<Promise> ImportModuleDynamically(
5151
+MaybeLocal<Promise> ImportModuleDynamically(
5252
Local<Context> context,
53-
Local<v8::Data> host_defined_options,
53+
Local<Data> host_defined_options,
5454
Local<Value> resource_name,
55-
@@ -888,12 +888,13 @@ void ModuleWrap::SetImportModuleDynamicallyCallback(
55+
@@ -897,12 +897,13 @@ void ModuleWrap::SetImportModuleDynamicallyCallback(
5656
Realm* realm = Realm::GetCurrent(args);
5757
HandleScope handle_scope(isolate);
5858

@@ -68,7 +68,7 @@ index 8be6dbd1d0262ccbb2318de1d98e344e9b21a510..1509fc54fe9767e101b107509b4b2d6c
6868
}
6969

7070
void ModuleWrap::HostInitializeImportMetaObjectCallback(
71-
@@ -935,13 +936,14 @@ void ModuleWrap::SetInitializeImportMetaObjectCallback(
71+
@@ -944,13 +945,14 @@ void ModuleWrap::SetInitializeImportMetaObjectCallback(
7272
Realm* realm = Realm::GetCurrent(args);
7373
Isolate* isolate = realm->isolate();
7474

0 commit comments

Comments
 (0)