Skip to content

Commit 7b9a1ef

Browse files
src: make AliasedBuffers in the binding data weak
Co-authored-by: Chengzhong Wu <[email protected]>
1 parent 13e36a1 commit 7b9a1ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/aliased_buffer-inl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ inline void AliasedBufferBase<NativeT, V8T>::WeakCallback(
132132
AliasedBufferBase<NativeT, V8T>* buffer = data.GetParameter();
133133
DCHECK(buffer->is_valid());
134134
buffer->cleared_ = true;
135+
js_array_.Reset();
135136
}
136137

137138
template <typename NativeT, typename V8T>

0 commit comments

Comments
 (0)