fix: use Node.js isolate setup logic in bindings (#24579)

* fix: use Node.js isolate setup logic in bindings

* Flags should be more process-specific

* Remove redundant isolate function setting

* Remove old SetFatalErrorHandler call
This commit is contained in:
Shelley Vohr 2020-07-20 12:41:52 -07:00 committed by GitHub
parent f0953902db
commit bcba4baa85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 81 additions and 85 deletions

View file

@ -167,10 +167,6 @@ int NodeMain(int argc, char* argv[]) {
feature_list->InitializeFromCommandLine("", "");
base::FeatureList::SetInstance(std::move(feature_list));
// We do not want to double-set the error level and promise rejection
// callback.
node::g_standalone_mode = false;
// Explicitly register electron's builtin modules.
NodeBindings::RegisterBuiltinModules();