From 47dee65e4ad20847108d2f7e590c001ca9b93204 Mon Sep 17 00:00:00 2001 From: Satya Rohith Date: Fri, 23 Feb 2024 22:00:29 +0530 Subject: fix(ext/node): set correct process.argv0 (#22555) --- runtime/js/99_main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'runtime/js') diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 11c26798b..21c74aeff 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -644,7 +644,7 @@ function bootstrapMainRuntime(runtimeOptions) { 2: unstableFeatures, 3: inspectFlag, 5: hasNodeModulesDir, - 6: maybeBinaryNpmCommandName, + 6: argv0, 7: shouldDisableDeprecatedApiWarning, 8: shouldUseVerboseDeprecatedApiWarning, 9: future, @@ -768,7 +768,7 @@ function bootstrapMainRuntime(runtimeOptions) { ObjectDefineProperty(globalThis, "Deno", core.propReadOnly(finalDenoNs)); if (nodeBootstrap) { - nodeBootstrap(hasNodeModulesDir, maybeBinaryNpmCommandName); + nodeBootstrap(hasNodeModulesDir, argv0); } if (future) { @@ -793,7 +793,7 @@ function bootstrapWorkerRuntime( 2: unstableFeatures, 4: enableTestingFeaturesFlag, 5: hasNodeModulesDir, - 6: maybeBinaryNpmCommandName, + 6: argv0, 7: shouldDisableDeprecatedApiWarning, 8: shouldUseVerboseDeprecatedApiWarning, } = runtimeOptions; @@ -897,7 +897,7 @@ function bootstrapWorkerRuntime( ObjectDefineProperty(globalThis, "Deno", core.propReadOnly(finalDenoNs)); if (nodeBootstrap) { - nodeBootstrap(hasNodeModulesDir, maybeBinaryNpmCommandName); + nodeBootstrap(hasNodeModulesDir, argv0); } } -- cgit v1.2.3