fix lack of error in structuredClone polyfill on attempt to transfer multiple objects, some of which are non-transferable

This commit is contained in:
Denis Pushkarev
2026-02-13 09:14:33 +02:00
parent d56d9a788f
commit c84987cfcb
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -6,6 +6,7 @@
- Fixed some cases of `RegExp` NCG polyfill in combination with other types of groups
- Fixed `URL` polyfill `.origin` getter with `blob` scheme
- Fixed counter in some cases of some `AsyncIterator` methods
- Fixed lack of error in `structuredClone` polyfill on attempt to transfer multiple objects, some of which are non-transferable
- Fixed a minor logical bug in the debugging output of `core-js-builder`
- Compat data improvements:
- [`Iterator.concat`](https://github.com/tc39/proposal-iterator-sequencing) marked as [shipped in V8 ~ Chrome 146](https://issues.chromium.org/issues/434977727#comment7)
@@ -443,8 +443,8 @@ var tryToTransfer = function (rawTransfer, map) {
while (i < length) {
value = transfer[i++];
type = classof(value);
transferred = undefined;
if (type === 'ArrayBuffer' ? setHas(buffers, value) : mapHas(map, value)) {
throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);