diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js index 1af12795513083..0e9c36c4fcd83f 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', {