Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: prevent copying ArrayBufferViewContents
It is error-prone to copy or heap-allocate `ArrayBufferViewContents`, because you might accidentally cause it to exceed the lifetime of its argument. Let's make it impossible to do so. Fortunately we were not doing so anywhere already, so this diff is purely defensive. Refs: nodejs/node#44079 (comment) PR-URL: nodejs/node#44091 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Feng Yu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
- Loading branch information