Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec051b9

Browse files
mertcanaltinaduh95
authored andcommitted
src: add HandleScope to edge loop in heap_utils
PR-URL: #60885 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
1 parent b5fe481 commit ec051b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/heap_utils.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ class JSGraph : public EmbedderGraph {
181181
size_t i = 0;
182182
size_t j = 0;
183183
for (const auto& edge : edge_info.second) {
184+
HandleScope handle_scope(isolate_);
184185
Local<Object> to_object = info_objects[edge.second];
185186
Local<Object> edge_obj = Object::New(isolate_);
186187
Local<Value> edge_name_value;

0 commit comments

Comments
 (0)