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 Dec 26, 2018
1 parent 33cd51e commit 74d3f0b
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 74d3f0b

Please sign in to comment.