Skip to content

Commit 66e55ee

Browse files
committed
process: replace native methods with primordials
Replace native methods with primordials.
1 parent 879b95e commit 66e55ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/process/per_thread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ function buildAllowedFlags() {
395395
if (info.envVarSettings === kAllowedInEnvvar) {
396396
ArrayPrototypePush(allowedNodeEnvironmentFlags, name);
397397
if (info.type === kBoolean) {
398-
const negatedName = `--no-${name.slice(2)}`;
398+
const negatedName = `--no-${StringPrototypeSlice(name, 2)}`;
399399
ArrayPrototypePush(allowedNodeEnvironmentFlags, negatedName);
400400
}
401401
}

0 commit comments

Comments
 (0)