From d478bc737589fcf7d7d049057ec9d42c2a18b4bb Mon Sep 17 00:00:00 2001 From: sylkat Date: Mon, 3 Sep 2018 01:40:28 +0800 Subject: [PATCH] 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 Reviewed-By: Myles Borins --- lib/internal/bootstrap_node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index 1af12795513..0e9c36c4fcd 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -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', {