mirror of https://github.com/nodejs/node.git
tools: fix mkcodecache when run with ASAN
Fixes: https://github.com/nodejs/node/issues/32835 PR-URL: https://github.com/nodejs/node/pull/32850 Reviewed-By: Matheus Marchini <mat@mmarchini.me> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>pull/32979/head
parent
14aa313186
commit
7be5f58638
|
@ -49,8 +49,8 @@ int main(int argc, char* argv[]) {
|
|||
|
||||
// Create a new Isolate and make it the current one.
|
||||
Isolate::CreateParams create_params;
|
||||
create_params.array_buffer_allocator =
|
||||
ArrayBuffer::Allocator::NewDefaultAllocator();
|
||||
create_params.array_buffer_allocator_shared.reset(
|
||||
ArrayBuffer::Allocator::NewDefaultAllocator());
|
||||
Isolate* isolate = Isolate::New(create_params);
|
||||
{
|
||||
Isolate::Scope isolate_scope(isolate);
|
||||
|
@ -65,6 +65,7 @@ int main(int argc, char* argv[]) {
|
|||
out << cache;
|
||||
out.close();
|
||||
}
|
||||
isolate->Dispose();
|
||||
|
||||
v8::V8::ShutdownPlatform();
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue