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
Daniel Bevenius 2017-11-30 07:46:03 +01:00
parent 6aee5fbf99
commit 7850112c33
1 changed files with 1 additions and 1 deletions

View File

@ -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_);
}