src: fix bootstrap_node on bsd

Currently makes a call to `realpathSync.native` which doesn't exist
on 8.x or lower

PR-URL: https://github.com/nodejs/node/pull/22663
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
This commit is contained in:
sylkat authored and Myles Borins committed 2018-09-03 10:23:05 -04:00
1 parent f82d58db4c
commit d478bc7375
1 file changed
+1 -1
+1 -1
View File
@@ -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', {