summaryrefslogtreecommitdiff
path: root/test/cctest
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-11-30 07:46:03 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2017-12-01 07:56:39 +0100
commit7850112c339ad1eac437bb22d562ea00a98be04a (patch)
tree0a3bc41973b76f80cf2de6066147c6cdf9300486 /test/cctest
parent6aee5fbf993b4e8a2b62d45259f324bc8513f2aa (diff)
downloadandroid-node-v8-7850112c339ad1eac437bb22d562ea00a98be04a.tar.gz
android-node-v8-7850112c339ad1eac437bb22d562ea00a98be04a.tar.bz2
android-node-v8-7850112c339ad1eac437bb22d562ea00a98be04a.zip
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>
Diffstat (limited to 'test/cctest')
-rw-r--r--test/cctest/node_test_fixture.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h
index bbc46986eb..d5be613c0b 100644
--- a/test/cctest/node_test_fixture.h
+++ b/test/cctest/node_test_fixture.h
@@ -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_);
}