Skip to content

Commit ee76065

Browse files
committed
lib: remove startsWith/endsWith primordials for char checks
nodejs/node#55407
1 parent dd85a8d commit ee76065

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

patches/node/chore_allow_the_node_entrypoint_to_be_a_builtin_module.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ diff --git a/lib/internal/process/pre_execution.js b/lib/internal/process/pre_ex
2929
index a05d2846050c2f505eac16320f645e79182a27f6..348bb80ef7fae1e0e5f529b1313093eeadad9276 100644
3030
--- a/lib/internal/process/pre_execution.js
3131
+++ b/lib/internal/process/pre_execution.js
32-
@@ -247,12 +247,14 @@ function patchProcessObject(expandArgv1) {
33-
if (expandArgv1 && process.argv[1] &&
34-
!StringPrototypeStartsWith(process.argv[1], '-')) {
32+
@@ -243,12 +243,14 @@ function patchProcessObject(expandArgv1) {
33+
// the entry point.
34+
if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-') {
3535
// Expand process.argv[1] into a full path.
3636
- const path = require('path');
3737
- try {

0 commit comments

Comments
 (0)