diff options
author | Andreas Haas <ahaas@google.com> | 2018-06-03 17:35:25 +0200 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2018-09-07 21:07:25 +0200 |
commit | d5e72944457117913c7ded2caf1f623a25f8726f (patch) | |
tree | 0d5faacfef5023353b901f93da05c282d116efaf /test/cctest | |
parent | 3771c9abc852d73748dde22866e71cd552ec8214 (diff) | |
download | android-node-v8-d5e72944457117913c7ded2caf1f623a25f8726f.tar.gz android-node-v8-d5e72944457117913c7ded2caf1f623a25f8726f.tar.bz2 android-node-v8-d5e72944457117913c7ded2caf1f623a25f8726f.zip |
src: initialize PerIsolateData eagerly
PR-URL: https://github.com/nodejs/node/pull/21983
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
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; } }; |