src: update std::vector<v8::Local<T>> to use v8::LocalVector<T> · nodejs/node@d1c6f86 · GitHub
Skip to content

Commit d1c6f86

Browse files
Aditi-1400aduh95
authored andcommitted
src: update std::vector<v8::Local<T>> to use v8::LocalVector<T>
According to V8's public API documentation, local handles (i.e., objects of type v8::Local<T>) "should never be allocated on the heap". This replaces the usage of heap-allocated data structures containing instances of `v8::Local`, specifically the `std::vector<v8::Local<v8::String>>` with recently introduced `v8::LocalVector<T>`. This is first of the series of commits to replace all `std::vector<v8::Local<T>>` to use `v8::LocalVector<T>`. PR-URL: #57578 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent b5cd0eb commit d1c6f86

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/node_builtins.cc

Lines changed: 4 additions & 3 deletions

src/node_builtins.h

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)