mirror of https://github.com/nodejs/node.git
test: make CreateParams stack-allocated
PR-URL: https://github.com/nodejs/node/pull/17366 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>pull/17265/merge
parent
6aee5fbf99
commit
7850112c33
|
@ -61,7 +61,6 @@ class NodeTestFixture : public ::testing::Test {
|
|||
node::MultiIsolatePlatform* Platform() const { return platform_; }
|
||||
|
||||
protected:
|
||||
v8::Isolate::CreateParams params_;
|
||||
v8::Isolate* isolate_;
|
||||
|
||||
~NodeTestFixture() {
|
||||
|
@ -73,6 +72,7 @@ class NodeTestFixture : public ::testing::Test {
|
|||
platform_ = new node::NodePlatform(8, nullptr);
|
||||
v8::V8::InitializePlatform(platform_);
|
||||
v8::V8::Initialize();
|
||||
v8::Isolate::CreateParams params_;
|
||||
params_.array_buffer_allocator = allocator_.get();
|
||||
isolate_ = v8::Isolate::New(params_);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue