From b27038f63f7963253f4c473b68503de1b1491cc3 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 3cadf1e399e51b..f09e9a5beb023d 100644 --- a/lib/internal/bootstrap_node.js +++ b/lib/internal/bootstrap_node.js @@ -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', {