mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test,doc: add missing uv_setup_args() calls
libuv 1.39.0 will begin requiring uv_setup_args() to be called before attempting to access the process title. This commit adds uv_setup_args() calls that were missing in order for the test suite to pass (and updates the documentation). PR-URL: https://github.com/nodejs/node/pull/34751 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
8640cd6066
commit
1e59f31555
3 files changed
+4
No files matched your search
@@ -35,6 +35,7 @@ the `node` and `v8` C++ namespaces, respectively.
|
||||
|
||||
```cpp
|
||||
int main(int argc, char** argv) {
|
||||
argv = uv_setup_args(argc, argv);
|
||||
std::vector<std::string> args(argv, argv + argc);
|
||||
std::vector<std::string> exec_args;
|
||||
std::vector<std::string> errors;
|
||||
|
||||
Reference in new issue
Block a user