Skip to content

Commit d478bc7

Browse files
sylkatMylesBorins
authored andcommitted
src: fix bootstrap_node on bsd
Currently makes a call to `realpathSync.native` which doesn't exist on 8.x or lower PR-URL: #22663 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Myles Borins <myles.borins@gmail.com>
1 parent f82d58d commit d478bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/bootstrap_node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
// get the full path before process.execPath is used.
8989
if (process.platform === 'openbsd') {
9090
const { realpathSync } = NativeModule.require('fs');
91-
process.execPath = realpathSync.native(process.execPath);
91+
process.execPath = realpathSync(process.execPath);
9292
}
9393

9494
Object.defineProperty(process, 'argv0', {

0 commit comments

Comments
 (0)