Skip to content

Commit aedc712

Browse files
sylkatBethGriggs
authored andcommittedMar 7, 2019
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 f1de9ae commit aedc712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/internal/bootstrap_node.js

+1-1
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)
Please sign in to comment.