refactor: clean up Node.js cli arg parsing (#39465)

* refactor: clean up Node.js arg parsing

* chore: feedback from review
This commit is contained in:
Shelley Vohr
2023-08-15 20:49:21 +02:00
committed by GitHub
parent 1d20ec5b99
commit 22429e2112
4 changed files with 32 additions and 59 deletions

View File

@@ -92,7 +92,7 @@ class NodeBindings {
// Setup V8, libuv.
void Initialize(v8::Local<v8::Context> context);
void SetNodeCliFlags();
std::vector<std::string> ParseNodeCliFlags();
// Create the environment and load node.js.
node::Environment* CreateEnvironment(v8::Handle<v8::Context> context,