Skip to content

Commit

Permalink
src: fix bootstrap_node on bsd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sylkat authored and BethGriggs committed Mar 7, 2019
1 parent f1de9ae commit aedc712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
// get the full path before process.execPath is used.
if (process.platform === 'openbsd') {
const { realpathSync } = NativeModule.require('fs');
process.execPath = realpathSync.native(process.execPath);
process.execPath = realpathSync(process.execPath);
}

Object.defineProperty(process, 'argv0', {
Expand Down

0 comments on commit aedc712

Please sign in to comment.