mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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>
This commit is contained in:
1 parent
a71f214282
commit
97a264e194
1 file changed
+1
-1
@@ -59,7 +59,6 @@ class NodeTestFixture : public ::testing::Test {
|
||||
static uv_loop_t* CurrentLoop() { return ¤t_loop; }
|
||||
|
||||
protected:
|
||||
v8::Isolate::CreateParams params_;
|
||||
v8::Isolate* isolate_;
|
||||
|
||||
~NodeTestFixture() {
|
||||
@@ -71,6 +70,7 @@ class NodeTestFixture : public ::testing::Test {
|
||||
platform_ = new node::NodePlatform(8, ¤t_loop, nullptr);
|
||||
v8::V8::InitializePlatform(platform_);
|
||||
v8::V8::Initialize();
|
||||
v8::Isolate::CreateParams params_;
|
||||
params_.array_buffer_allocator = allocator_.get();
|
||||
isolate_ = v8::Isolate::New(params_);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user