From c21c705a7b107e125a1befc031ae7ed9939b1e59 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Thu, 7 Mar 2024 16:12:06 +0100 Subject: [PATCH] fixup! module: print location of unsettled top-level await in entry points --- lib/internal/modules/esm/module_job.js | 2 +- lib/internal/modules/run_main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/modules/esm/module_job.js b/lib/internal/modules/esm/module_job.js index c55398304b480d..108a8138443de0 100644 --- a/lib/internal/modules/esm/module_job.js +++ b/lib/internal/modules/esm/module_job.js @@ -5,7 +5,6 @@ const { ArrayPrototypePush, ArrayPrototypeSome, FunctionPrototype, - globalThis, ObjectSetPrototypeOf, PromiseResolve, PromisePrototypeThen, @@ -18,6 +17,7 @@ const { StringPrototypeIncludes, StringPrototypeSplit, StringPrototypeStartsWith, + globalThis, } = primordials; const { ModuleWrap } = internalBinding('module_wrap'); diff --git a/lib/internal/modules/run_main.js b/lib/internal/modules/run_main.js index a0f43e90b43554..b134a54cfec92a 100644 --- a/lib/internal/modules/run_main.js +++ b/lib/internal/modules/run_main.js @@ -1,8 +1,8 @@ 'use strict'; const { - globalThis, StringPrototypeEndsWith, + globalThis, } = primordials; const { containsModuleSyntax } = internalBinding('contextify');