summaryrefslogtreecommitdiff
path: root/test_util/src
diff options
context:
space:
mode:
authorAndreu Botella <andreu@andreubotella.com>2022-07-11 17:27:33 +0200
committerGitHub <noreply@github.com>2022-07-11 17:27:33 +0200
commit018ad9b3a4f2e5c8597274f61262c6035bdb560d (patch)
tree5dba5fd5a9a9e8fd818532b66ead5c5721e32508 /test_util/src
parent83c9714fb2f401e82a6c2e784a43130818e8282d (diff)
chore(web, worker): Use `DetachedBuffer` for `postMessage` ops (#15133)
This commit uses `DetachedBuffer` instead of `ZeroCopyBuf` in the ops that back `Worker.prototype.postMessage` and `MessagePort.prototype.postMessage`. This is done because the serialized buffer is then copied to the destination isolate, even though it is internal to runtime code and not used for anything else, so detaching it and transferring it instead saves an unnecessary copy.
Diffstat (limited to 'test_util/src')
0 files changed, 0 insertions, 0 deletions