Skip to content

Commit

Permalink
fix some cases of Function#toString with multiple core-js instances
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 8, 2021
1 parent 240fa25 commit 1789d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Changelog
##### Unreleased
- Nothing
- Fixed some cases of `Function#toString` with multiple `core-js` instances

##### 3.12.0 - 2021.05.06
- Added well-known symbol `Symbol.metadata` for [decorators stage 2 proposal](https://github.com/tc39/proposal-decorators)
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/internals/internal-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var getterFor = function (TYPE) {
};
};

if (NATIVE_WEAK_MAP) {
if (NATIVE_WEAK_MAP || shared.state) {
var store = shared.state || (shared.state = new WeakMap());
var wmget = store.get;
var wmhas = store.has;
Expand Down

0 comments on commit 1789d3e

Please sign in to comment.