Skip to content

src: prevent copying ArrayBufferViewContents

Rodrigo Muino Tomonari requested to merge github/fork/kvakil/prevent-copy into main

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: https://github.com/nodejs/node/pull/44079#discussion_r934376046

Merge request reports

Loading