Skip to content

Commit aedc712

Browse files
sylkatBethGriggs
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 <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent f1de9ae commit aedc712

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
@@ -70,7 +70,7 @@
7070
// get the full path before process.execPath is used.
7171
if(process.platform==='openbsd'){
7272
const{ realpathSync }=NativeModule.require('fs');
73-
process.execPath=realpathSync.native(process.execPath);
73+
process.execPath=realpathSync(process.execPath);
7474
}
7575

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

0 commit comments

Comments
(0)