We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 916cfec commit bd4350cCopy full SHA for bd4350c
lib/internal/bootstrap_node.js
@@ -75,6 +75,13 @@
75
// URL::ToObject() method is used.
76
NativeModule.require('internal/url');
77
78
+ // On OpenBSD process.execPath will be relative unless we
79
+ // get the full path before process.execPath is used.
80
+ if (process.platform === 'openbsd') {
81
+ const { realpathSync } = NativeModule.require('fs');
82
+ process.execPath = realpathSync.native(process.execPath);
83
+ }
84
+
85
Object.defineProperty(process, 'argv0', {
86
enumerable: true,
87
configurable: false,
0 commit comments