diff options
Diffstat (limited to 'test/cctest')
-rw-r--r-- | test/cctest/node_test_fixture.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h index 8cba5d99ba..4a729be09c 100644 --- a/test/cctest/node_test_fixture.h +++ b/test/cctest/node_test_fixture.h @@ -90,10 +90,13 @@ class NodeTestFixture : public ::testing::Test { &node::FreeArrayBufferAllocator); isolate_ = NewIsolate(allocator.get()); CHECK_NE(isolate_, nullptr); + platform->RegisterIsolate(isolate_, ¤t_loop); + v8::Isolate::Initialize(isolate_, params); } virtual void TearDown() { isolate_->Dispose(); + platform->UnregisterIsolate(isolate_); isolate_ = nullptr; } }; |