From bb8af529209be81f0a7c220406dfc38d3ba92c71 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Sun, 3 Jun 2018 17:35:25 +0200 Subject: [PATCH] src: initialize PerIsolateData eagerly PR-URL: https://github.com/nodejs/node/pull/21983 Reviewed-By: Refael Ackermann Reviewed-By: Gus Caplan Reviewed-By: Ujjwal Sharma Reviewed-By: Matteo Collina --- test/cctest/node_test_fixture.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h index f4c97b05027..af10ee4e627 100644 --- a/test/cctest/node_test_fixture.h +++ b/test/cctest/node_test_fixture.h @@ -89,6 +89,8 @@ class NodeTestFixture : public ::testing::Test { &node::FreeArrayBufferAllocator); isolate_ = NewIsolate(allocator.get(), ¤t_loop); CHECK_NE(isolate_, nullptr); + platform->RegisterIsolate(isolate_, ¤t_loop); + v8::Isolate::Initialize(isolate_, params); } virtual void TearDown() {