Skip to content

Commit

Permalink
disable forced replacement for f16 features (stage 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 27, 2023
1 parent 09c96b2 commit b2b5af1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core-js/modules/esnext.data-view.get-float16.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var getUint16 = uncurryThis(DataView.prototype.getUint16);

// `DataView.prototype.getFloat16` method
// https://github.com/tc39/proposal-float16array
$({ target: 'DataView', proto: true, forced: true }, {
$({ target: 'DataView', proto: true }, {
getFloat16: function getFloat16(byteOffset /* , littleEndian */) {
var uint16 = getUint16(this, byteOffset, arguments.length > 1 ? arguments[1] : false);
return unpackIEEE754([uint16 & 0xFF, uint16 >> 8 & 0xFF], 10);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/esnext.data-view.set-float16.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var setUint16 = uncurryThis(DataView.prototype.setUint16);

// `DataView.prototype.setFloat16` method
// https://github.com/tc39/proposal-float16array
$({ target: 'DataView', proto: true, forced: true }, {
$({ target: 'DataView', proto: true }, {
setFloat16: function setFloat16(byteOffset, value /* , littleEndian */) {
if (classof(this) !== 'DataView') throw $TypeError('Incorrect receiver');
var offset = toIndex(byteOffset);
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/esnext.math.f16round.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var $isFinite = isFinite;

// `Math.f16round` method
// https://github.com/tc39/proposal-float16array
$({ target: 'Math', stat: true, forced: true }, {
$({ target: 'Math', stat: true }, {
f16round: function f16round(x) {
var n = +x;
return $isFinite(n) && n !== 0 ? unpackIEEE754(packIEEE754(n, 10, 2), 10) : n;
Expand Down

0 comments on commit b2b5af1

Please sign in to comment.