Skip to content

Commit 8400ff3

Browse files
committed
fixup! sea: suppress builtin warning with disableExperimentalSEAWarning option
Signed-off-by: koooge <[email protected]>
1 parent 05e0850 commit 8400ff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/main/embedding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ let warnedAboutBuiltins = false;
9898
function embedderRequire(id) {
9999
const normalizedId = normalizeRequirableId(id);
100100
if (!normalizedId) {
101-
if (isLoadingSea && isExperimentalSeaWarningNeeded && !warnedAboutBuiltins) {
101+
if (isLoadingSea && isExperimentalSeaWarningNeeded() && !warnedAboutBuiltins) {
102102
emitWarningSync(
103103
'Currently the require() provided to the main script embedded into ' +
104104
'single-executable applications only supports loading built-in modules.\n' +

0 commit comments

Comments
 (0)