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 <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
  • Loading branch information
sylkat authored and MylesBorins committed Sep 3, 2018
1 parent f82d58d commit d478bc7
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 @@ -88,7 +88,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 d478bc7

Please sign in to comment.