Skip to content

Commit 8868f38

Browse files
committed
fix: do not supply undefined for phase parameter
`phase` parameter doesn't exist in v22.x
1 parent 8da021f commit 8868f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/main/worker_thread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ port.on('message', (message) => {
208208

209209
RegExpPrototypeExec(/^/, ''); // Necessary to reset RegExp statics before user code runs.
210210
const promise = runEntryPointWithESMLoader((cascadedLoader) => {
211-
return cascadedLoader.import(filename, undefined, { __proto__: null }, undefined, true);
211+
return cascadedLoader.import(filename, undefined, { __proto__: null }, true);
212212
});
213213

214214
PromisePrototypeThen(promise, undefined, (e) => {

0 commit comments

Comments
 (0)