mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
fix lack of error in structuredClone polyfill on attempt to transfer multiple objects, some of which are non-transferable
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user