Skip to content

Commit

Permalink
fix structuredClone feature detection core-js@3.32.1 bug, close #…
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Sep 6, 2023
1 parent 26c6592 commit 875601e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Changelog
##### Unreleased
- Fixed `structuredClone` feature detection `core-js@3.32.1` bug, [#1288](https://github.com/zloirock/core-js/issues/1288)
- Compat data improvements:
- Added Samsung Internet 23 compat data mapping
- Added Quest Browser 29 compat data mapping
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/web.structured-clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var checkBasicSemantic = function (structuredCloneImplementation) {
var set1 = new global.Set([7]);
var set2 = structuredCloneImplementation(set1);
var number = structuredCloneImplementation(Object(7));
return set2 === set1 || !set2.has(7) || typeof number != 'object' || number !== 7;
return set2 === set1 || !set2.has(7) || typeof number != 'object' || +number !== 7;
}) && structuredCloneImplementation;
};

Expand Down

0 comments on commit 875601e

Please sign in to comment.