Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
process: normalize process.execPath in CreateProcessObject()
Directly normalize `process.execPath` using `uv_fs_realpath`
on OpenBSD before serializing it into the process object,
instead of using `require('fs')` to normalize and override
the path in `bootstrap/node.js`.
PR-URL: #26002
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: James M Snell <jasnell@gmail.com>- Loading branch information
Showing
with
26 additions
and 20 deletions.
- +0 −7 lib/internal/bootstrap/node.js
- +26 −13 src/node_process_object.cc
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -187,13 +187,6 @@ if (browserGlobals) { | ||
|
|
||
| setupDOMException(); | ||
|
|
||
| Object.defineProperty(process, 'argv0', { | ||
| enumerable: true, | ||
| configurable: false, | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters