You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.
If HTML adds a structuredClone method, would it still make sense to expose an ArrayBuffer.transfer operation? It seems that you could use structuredClone for very similar purposes, though it's only available on the web. cc @surma
The text was updated successfully, but these errors were encountered:
to convey the semantic of "transfer this array buffer" is pretty opaque.
And, tying up the low-level ability to transfer array buffers inside the higher-level, recursive-object-graph-crawling, multi-function structured cloning algorithm is pretty silly. I'd rather move toward high-level features like structured clone be implementable in JavaScript, by making it possible to transfer individual transferables, instead of inverting things and using structured clone to get at low-level functionality.
If HTML adds a
structuredClone
method, would it still make sense to expose anArrayBuffer.transfer
operation? It seems that you could usestructuredClone
for very similar purposes, though it's only available on the web. cc @surmaThe text was updated successfully, but these errors were encountered: