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', {