From b2b5af1e059a3b70d2a9715136e17f97fff3449f Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Fri, 28 Jul 2023 01:19:09 +0700 Subject: [PATCH] disable forced replacement for f16 features (stage 3) --- packages/core-js/modules/esnext.data-view.get-float16.js | 2 +- packages/core-js/modules/esnext.data-view.set-float16.js | 2 +- packages/core-js/modules/esnext.math.f16round.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core-js/modules/esnext.data-view.get-float16.js b/packages/core-js/modules/esnext.data-view.get-float16.js index 5ecc7939dce5..eac608cc235e 100644 --- a/packages/core-js/modules/esnext.data-view.get-float16.js +++ b/packages/core-js/modules/esnext.data-view.get-float16.js @@ -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); diff --git a/packages/core-js/modules/esnext.data-view.set-float16.js b/packages/core-js/modules/esnext.data-view.set-float16.js index 7beb48434d06..28e281ff7e3f 100644 --- a/packages/core-js/modules/esnext.data-view.set-float16.js +++ b/packages/core-js/modules/esnext.data-view.set-float16.js @@ -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); diff --git a/packages/core-js/modules/esnext.math.f16round.js b/packages/core-js/modules/esnext.math.f16round.js index e872be3574bf..5ad662e5524d 100644 --- a/packages/core-js/modules/esnext.math.f16round.js +++ b/packages/core-js/modules/esnext.math.f16round.js @@ -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;