Skip to content

Commit

Permalink
fix possible error on multiple core-js copies, close #1091
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jun 14, 2022
1 parent 54fcdb8 commit 829581c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,6 +1,6 @@
## Changelog
##### Unreleased
- Nothing
- Fixed possible error on multiple `core-js` copies, [#1091](https://github.com/zloirock/core-js/issues/1091)

##### [3.23.0 - 2022.06.14](https://github.com/zloirock/core-js/releases/tag/v3.23.0)
- [`Array` find from last](https://github.com/tc39/proposal-array-find-from-last) moved to the stable ES, according to June 2022 TC39 meeting:
Expand Down
6 changes: 4 additions & 2 deletions packages/core-js/modules/esnext.math.deg-per-rad.js
@@ -1,7 +1,9 @@
var $ = require('../internals/export');

var DEG_PER_RAD = Math.PI / 180;

// `Math.DEG_PER_RAD` constant
// https://rwaldron.github.io/proposal-math-extensions/
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true, forced: true }, {
DEG_PER_RAD: Math.PI / 180
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true, forced: Math.DEG_PER_RAD !== DEG_PER_RAD }, {
DEG_PER_RAD: DEG_PER_RAD
});
6 changes: 4 additions & 2 deletions packages/core-js/modules/esnext.math.rad-per-deg.js
@@ -1,7 +1,9 @@
var $ = require('../internals/export');

var RAD_PER_DEG = 180 / Math.PI;

// `Math.RAD_PER_DEG` constant
// https://rwaldron.github.io/proposal-math-extensions/
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true, forced: true }, {
RAD_PER_DEG: 180 / Math.PI
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true, forced: Math.RAD_PER_DEG !== RAD_PER_DEG }, {
RAD_PER_DEG: RAD_PER_DEG
});

0 comments on commit 829581c

Please sign in to comment.