fix: isolate callbacks in node_bindings (#23261)

* fix: isolate callbacks in node_bindings

* clarify microtask policy comment
This commit is contained in:
shelley vohr
2020-04-27 01:03:40 -07:00
committed by GitHub
parent e5fe81ac15
commit 979c291847
2 changed files with 41 additions and 5 deletions

View File

@@ -164,7 +164,7 @@ int NodeMain(int argc, char* argv[]) {
exec_argc, exec_argv);
CHECK_NE(nullptr, env);
// TODO(codebytere): we shouldn't have to call this - upstream?
// This needs to be called before the inspector is initialized.
env->InitializeDiagnostics();
// This is needed in order to enable v8 host weakref hooks.