mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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>
This commit is contained in:
1 parent
308681307f
commit
ca5ebcfb67
1 file changed
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user