Skip to content

Commit a7636fc

Browse files
committed
drop Math.signbit (proposal is dead)
1 parent b2ff850 commit a7636fc

File tree

12 files changed

+0
-108
lines changed

12 files changed

+0
-108
lines changed

README.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
179179
- [`Array` deduplication](#array-deduplication)
180180
- [`DataView` get / set `Uint8Clamped` methods](#dataview-get-set-iint8clamped-methods)
181181
- [`Math` extensions](#math-extensions)
182-
- [`Math.signbit`](#mathsignbit)
183182
- [`String.cooked`](#stringcooked)
184183
- [`String.prototype.codePoints`](#stringprototypecodepoints)
185184
- [`Symbol.matcher` for pattern matching](#symbolmatcher-for-pattern-matching)
@@ -2934,26 +2933,6 @@ core-js(-pure)/full/math/rad-per-deg
29342933
core-js(-pure)/full/math/radians
29352934
core-js(-pure)/full/math/scale
29362935
```
2937-
##### [`Math.signbit`](https://github.com/tc39/proposal-Math.signbit)[⬆](#index)
2938-
Module [`esnext.math.signbit`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.math.signbit.js)
2939-
```js
2940-
namespace Math {
2941-
signbit(x: number): boolean;
2942-
}
2943-
```
2944-
[*CommonJS entry points:*](#commonjs-api)
2945-
```js
2946-
core-js/proposals/math-signbit
2947-
core-js(-pure)/full/math/signbit
2948-
```
2949-
[*Examples*](https://goo.gl/rPWbzZ):
2950-
```js
2951-
Math.signbit(NaN); // => false
2952-
Math.signbit(1); // => false
2953-
Math.signbit(-1); // => true
2954-
Math.signbit(0); // => false
2955-
Math.signbit(-0); // => true
2956-
```
29572936
##### [`String.cooked`](https://github.com/tc39/proposal-string-cooked)[⬆](#index)
29582937
Module [`esnext.string.cooked`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.string.cooked.js)
29592938
```js

packages/core-js-compat/src/data.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,8 +1968,6 @@ export const data = {
19681968
},
19691969
'esnext.math.scale': {
19701970
},
1971-
'esnext.math.signbit': {
1972-
},
19731971
'esnext.regexp.escape': {
19741972
},
19751973
'esnext.set.add-all': {

packages/core-js/full/math/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ require('../../modules/esnext.math.fscale');
77
require('../../modules/esnext.math.rad-per-deg');
88
require('../../modules/esnext.math.radians');
99
require('../../modules/esnext.math.scale');
10-
require('../../modules/esnext.math.signbit');
1110

1211
module.exports = parent;

packages/core-js/full/math/signbit.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/core-js/modules/esnext.math.signbit.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/core-js/proposals/math-signbit.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/core-js/stage/1.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ require('../proposals/collection-of-from');
88
require('../proposals/data-view-get-set-uint8-clamped');
99
require('../proposals/keys-composition');
1010
require('../proposals/math-extensions');
11-
require('../proposals/math-signbit');
1211
require('../proposals/pattern-matching');
1312
require('../proposals/string-code-points');
1413
require('../proposals/string-cooked');

scripts/build-entries/entries-definitions.mjs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -867,10 +867,6 @@ export const features = {
867867
modules: ['es.math.sign'],
868868
template: $static({ namespace: 'Math', method: 'sign' }),
869869
},
870-
'math/signbit': {
871-
modules: ['esnext.math.signbit'],
872-
template: $static({ namespace: 'Math', method: 'signbit' }),
873-
},
874870
'math/sinh': {
875871
modules: ['es.math.sinh'],
876872
template: $static({ namespace: 'Math', method: 'sinh' }),
@@ -2088,13 +2084,6 @@ export const proposals = {
20882084
'esnext.math.scale',
20892085
],
20902086
},
2091-
// https://github.com/tc39/proposal-Math.signbit
2092-
'math-signbit': {
2093-
stage: 1,
2094-
modules: [
2095-
'esnext.math.signbit',
2096-
],
2097-
},
20982087
// https://github.com/tc39/proposal-object-from-entries
20992088
'object-from-entries': {
21002089
stage: 4,

tests/compat/tests.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,9 +1701,6 @@ GLOBAL.tests = {
17011701
'esnext.math.scale': function () {
17021702
return Math.scale;
17031703
},
1704-
'esnext.math.signbit': function () {
1705-
return Math.signbit;
1706-
},
17071704
'esnext.regexp.escape': function () {
17081705
return RegExp.escape;
17091706
},

tests/entries/unit.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,6 @@ for (PATH of ['@core-js/pure', 'core-js']) {
724724
ok(load(NS, 'math/rad-per-deg') === 180 / Math.PI);
725725
ok(load(NS, 'math/radians')(180) === Math.PI);
726726
ok(load(NS, 'math/scale')(3, 1, 2, 1, 2) === 3);
727-
ok(load(NS, 'math/signbit')(-2) === true);
728727
ok(load(NS, 'map/of')([1, 2], [3, 4]) instanceof Map);
729728
ok(load(NS, 'map/reduce')(new Map([[1, 2], [2, 3], [3, 4]]), (a, b) => a + b) === 9);
730729
ok(load(NS, 'map/some')(new Map([[1, 2], [2, 3], [3, 4]]), it => it % 2) === true);
@@ -813,7 +812,6 @@ for (PATH of ['@core-js/pure', 'core-js']) {
813812
load('proposals/keys-composition');
814813
load('proposals/map-emplace');
815814
load('proposals/math-extensions');
816-
load('proposals/math-signbit');
817815
load('proposals/object-from-entries');
818816
load('proposals/object-getownpropertydescriptors');
819817
load('proposals/object-values-entries');

0 commit comments

Comments
 (0)