Skip to content

Commit

Permalink
For pure Number constructor, use native when features are available.
Browse files Browse the repository at this point in the history
  • Loading branch information
trosos authored and zloirock committed Dec 10, 2022
1 parent 19a1545 commit c18eea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.number.constructor.js
Expand Up @@ -89,7 +89,7 @@ if (IS_PURE || isForced(NUMBER, shouldForce)) {
if (IS_PURE) {
var source = {};
source[NUMBER] = NumberWrapper;
$({ global: true, forced: true }, source);
$({ global: true, forced: shouldForce }, source);
} else {
NumberPrototype.constructor = NumberWrapper;
defineBuiltIn(global, NUMBER, NumberWrapper, { constructor: true });
Expand Down

0 comments on commit c18eea3

Please sign in to comment.