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