-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: make cctest fixture use node::NewIsolate
This commit updates the gtest fixture to use node::NewIsolate instead of creating a new V8 Isolate using v8::Isolate::New. The motivation for this is that without calling node::NewIsolate the various callbacks set on the isolate, for example AddMessageListener, SetFatalErrorHandler etc, would not get set. I don't think this is the expected behaviour and I ran into this when writing a new cctest. PR-URL: #21419 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#include "node_test_fixture.h" | ||
|
||
ArrayBufferUniquePtr NodeTestFixture::allocator{nullptr, nullptr}; | ||
uv_loop_t NodeTestFixture::current_loop; | ||
std::unique_ptr<node::NodePlatform> NodeTestFixture::platform; | ||
std::unique_ptr<v8::ArrayBuffer::Allocator> NodeTestFixture::allocator; | ||
std::unique_ptr<v8::TracingController> NodeTestFixture::tracing_controller; | ||
v8::Isolate::CreateParams NodeTestFixture::params; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters