Skip to content

Commit

Permalink
src: make AliasedBuffers in the binding data weak
Browse files Browse the repository at this point in the history
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
  • Loading branch information
joyeecheung and legendecas authored Apr 4, 2023
1 parent 13e36a1 commit 7b9a1ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aliased_buffer-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ inline void AliasedBufferBase<NativeT, V8T>::WeakCallback(
AliasedBufferBase<NativeT, V8T>* buffer = data.GetParameter();
DCHECK(buffer->is_valid());
buffer->cleared_ = true;
js_array_.Reset();
}

template <typename NativeT, typename V8T>
Expand Down

0 comments on commit 7b9a1ef

Please sign in to comment.