buffer icon indicating copy to clipboard operation
buffer copied to clipboard

Avoid augmenting subarrays post-ES2016

Open chjj opened this issue 1 year ago • 0 comments
trafficstars

Not sure whether this helps performance, but subarrays only need augmenting pre-ES2016. Might be good to avoid it if we can.

The code detects whether TypedArray#subarray calls the child class' constructor (a la ES2016) at the end of the file -- once the Buffer prototype is completely setup.

chjj avatar Feb 04 '24 21:02 chjj