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 committed Dec 8, 2022
1 parent 1dac3e0 commit d2fd307
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 d2fd307

Please sign in to comment.