We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e10ed09 commit 6d00c08Copy full SHA for 6d00c08
src/node_isolate.cc
@@ -269,6 +269,10 @@ Isolate::Isolate() {
269
loop_ = uv_default_loop();
270
} else {
271
loop_ = uv_loop_new();
272
+ // Artificially ref the isolate loop so that the child
273
+ // isolate stays alive by default. process.exit will
274
+ // unref the loop (see Isolate::Unref).
275
+ uv_ref(loop_);
276
}
277
278
debug_state = kNone;
@@ -280,11 +284,6 @@ Isolate::Isolate() {
280
284
assert(v8_isolate_->GetData() == NULL);
281
285
v8_isolate_->SetData(this);
282
286
283
- // Artificially ref the isolate loop so that the child
- // isolate stays alive by default. process.exit will
- // unref the loop (see Isolate::Unref).
- uv_ref(loop_);
287
-
288
globals_init_ = false;
289
290
0 commit comments