src: remove deprecated node::InitializeNodeWithArgs · nodejs/node@e0ae14c · GitHub
Skip to content

Commit e0ae14c

Browse files
legendecasnodejs-github-bot
authored andcommitted
src: remove deprecated node::InitializeNodeWithArgs
PR-URL: #58470 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent ba6651a commit e0ae14c

3 files changed

Lines changed: 10 additions & 32 deletions

File tree

src/node.cc

Lines changed: 1 addition & 9 deletions

src/node.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -329,22 +329,6 @@ NODE_EXTERN int Start(int argc, char* argv[]);
329329
NODE_EXTERN int Stop(Environment* env,
330330
StopFlags::Flags flags = StopFlags::kNoFlags);
331331

332-
// Set up per-process state needed to run Node.js. This will consume arguments
333-
// from argv, fill exec_argv, and possibly add errors resulting from parsing
334-
// the arguments to `errors`. The return value is a suggested exit code for the
335-
// program; If it is 0, then initializing Node.js succeeded.
336-
// This runs a subset of the initialization performed by
337-
// InitializeOncePerProcess(), which supersedes this function.
338-
// The subset is roughly equivalent to the one given by
339-
// `ProcessInitializationFlags::kLegacyInitializeNodeWithArgsBehavior`.
340-
NODE_DEPRECATED("Use InitializeOncePerProcess() instead",
341-
NODE_EXTERN int InitializeNodeWithArgs(
342-
std::vector<std::string>* argv,
343-
std::vector<std::string>* exec_argv,
344-
std::vector<std::string>* errors,
345-
ProcessInitializationFlags::Flags flags =
346-
ProcessInitializationFlags::kNoFlags));
347-
348332
// Set up per-process state needed to run Node.js. This will consume arguments
349333
// from args, and return information about the initialization success,
350334
// including the arguments split into argv/exec_argv, a list of potential

test/cctest/node_test_fixture.h

Lines changed: 9 additions & 7 deletions

0 commit comments

Comments
 (0)