Skip to content

Commit a9955c5

Browse files
committed
move "Change Array by copy" proposal to stage 3
babel/proposals#81 (comment)
1 parent 81d06dd commit a9955c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+205
-152
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Changelog
22
##### Unreleased
3+
- [Change `Array` by copy proposal](https://github.com/tc39/proposal-change-array-by-copy) moved to stage 3
34
- Stabilized proposals are filtered out from the `core-js-compat` / `core-js-builder` / `core-js-bundle` output. That mean that if the output contains, for example, `es.object.has-own`, the legacy shortcut to it, `esnext.object.has-own`, will not be added.
45
- Fixed work of non-standard V8 `Error` features with wrapped `Error` constructors, [#1061](https://github.com/zloirock/core-js/issues/1061)
56
- `null` and `undefined` allowed as the second argument of `structuredClone`, [#1056](https://github.com/zloirock/core-js/issues/1056)

Diff for: README.md

+48-48
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ queueMicrotask(() => console.log('called as microtask'));
127127
- [Stage 3 proposals](#stage-3-proposals)
128128
- [`Array` grouping](#array-grouping)
129129
- [`Array` find from last](#array-find-from-last)
130+
- [Change `Array` by copy](#change-array-by-copy)
130131
- [Stage 2 proposals](#stage-2-proposals)
131132
- [`Iterator` helpers](#iterator-helpers)
132133
- [New `Set` methods](#new-set-methods)
133134
- [`Map.prototype.emplace`](#mapprototypeemplace)
134-
- [Change `Array` by copy](#change-array-by-copy)
135135
- [`Array.fromAsync`](#arrayfromasync)
136136
- [`Array.isTemplateObject`](#arrayistemplateobject)
137137
- [`Symbol.{ asyncDispose, dispose }` for `using` statement](#symbol-asyncdispose-dispose--for-using-statement)
@@ -2115,6 +2115,53 @@ core-js/actual|features/typed-array/find-last-index
21152115
[1, 2, 3, 4].findLast(it => it % 2); // => 3
21162116
[1, 2, 3, 4].findLastIndex(it => it % 2); // => 2
21172117
````
2118+
##### [Change `Array` by copy](https://github.com/tc39/proposal-change-array-by-copy)[⬆](#index)
2119+
Modules [`esnext.array.to-reversed`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.to-reversed.js), [`esnext.array.to-sorted`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.to-sorted.js), [`esnext.array.to-spliced`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.to-spliced.js), [`esnext.array.with`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.with.js), [`esnext.typed-array.to-reversed`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.typed-array.to-reversed.js), [`esnext.typed-array.to-sorted`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.typed-array.to-sorted.js), [`esnext.typed-array.to-spliced`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.typed-array.to-spliced.js), [`esnext.typed-array.with`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.typed-array.with.js).
2120+
```js
2121+
class Array {
2122+
toReversed(): Array<mixed>;
2123+
toSpliced(start?: number, deleteCount?: number, ...items: Array<mixed>): Array<mixed>;
2124+
toSorted(comparefn?: (a: any, b: any) => number): Array<mixed>;
2125+
with(index: includes, value: any): Array<mixed>;
2126+
}
2127+
2128+
class %TypedArray% {
2129+
toReversed(): %TypedArray%;
2130+
toSpliced(start?: number, deleteCount?: number, ...items: %TypedArray%): %TypedArray%;
2131+
toSorted(comparefn?: (a: any, b: any) => number): %TypedArray%;
2132+
with(index: includes, value: any): %TypedArray%;
2133+
}
2134+
```
2135+
[*CommonJS entry points:*](#commonjs-api)
2136+
```
2137+
core-js/proposals/change-array-by-copy
2138+
core-js(-pure)/actual|features/array(/virtual)/to-reversed
2139+
core-js(-pure)/actual|features/array(/virtual)/to-sorted
2140+
core-js(-pure)/actual|features/array(/virtual)/to-spliced
2141+
core-js(-pure)/actual|features/array(/virtual)/with
2142+
core-js/actual|features/typed-array/to-reversed
2143+
core-js/actual|features/typed-array/to-sorted
2144+
core-js/actual|features/typed-array/to-spliced
2145+
core-js/actual|features/typed-array/with
2146+
```
2147+
[*Examples*](t.ly/wcvY):
2148+
```js
2149+
const sequence = [1, 2, 3];
2150+
sequence.toReversed(); // => [3, 2, 1]
2151+
sequence; // => [1, 2, 3]
2152+
2153+
const array = [1, 2, 3, 4];
2154+
array.toSpliced(1, 2, 5, 6, 7); // => [1, 5, 6, 7, 4]
2155+
array; // => [1, 2, 3, 4]
2156+
2157+
const outOfOrder = [3, 1, 2];
2158+
outOfOrder.toSorted(); // => [1, 2, 3]
2159+
outOfOrder; // => [3, 1, 2]
2160+
2161+
const correctionNeeded = [1, 1, 3];
2162+
correctionNeeded.with(1, 2); // => [1, 2, 3]
2163+
correctionNeeded; // => [1, 1, 3]
2164+
````
21182165

21192166
#### Stage 2 proposals[⬆](#index)
21202167
[*CommonJS entry points:*](#commonjs-api)
@@ -2288,53 +2335,6 @@ map.emplace('b', { update: it => it ** 2, insert: () => 3}); // => 3
22882335

22892336
console.log(map); // => Map { 'a': 4, 'b': 3 }
22902337
```
2291-
##### [Change `Array` by copy](https://github.com/tc39/proposal-change-array-by-copy)[⬆](#index)
2292-
Modules [`esnext.array.to-reversed`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.to-reversed.js), [`esnext.array.to-sorted`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.to-sorted.js), [`esnext.array.to-spliced`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.to-spliced.js), [`esnext.array.with`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.with.js), [`esnext.typed-array.to-reversed`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.typed-array.to-reversed.js), [`esnext.typed-array.to-sorted`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.typed-array.to-sorted.js), [`esnext.typed-array.to-spliced`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.typed-array.to-spliced.js), [`esnext.typed-array.with`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.typed-array.with.js).
2293-
```js
2294-
class Array {
2295-
toReversed(): Array<mixed>;
2296-
toSpliced(start?: number, deleteCount?: number, ...items: Array<mixed>): Array<mixed>;
2297-
toSorted(comparefn?: (a: any, b: any) => number): Array<mixed>;
2298-
with(index: includes, value: any): Array<mixed>;
2299-
}
2300-
2301-
class %TypedArray% {
2302-
toReversed(): %TypedArray%;
2303-
toSpliced(start?: number, deleteCount?: number, ...items: %TypedArray%): %TypedArray%;
2304-
toSorted(comparefn?: (a: any, b: any) => number): %TypedArray%;
2305-
with(index: includes, value: any): %TypedArray%;
2306-
}
2307-
```
2308-
[*CommonJS entry points:*](#commonjs-api)
2309-
```
2310-
core-js/proposals/change-array-by-copy
2311-
core-js(-pure)/features/array(/virtual)/to-reversed
2312-
core-js(-pure)/features/array(/virtual)/to-sorted
2313-
core-js(-pure)/features/array(/virtual)/to-spliced
2314-
core-js(-pure)/features/array(/virtual)/with
2315-
core-js/features/typed-array/to-reversed
2316-
core-js/features/typed-array/to-sorted
2317-
core-js/features/typed-array/to-spliced
2318-
core-js/features/typed-array/with
2319-
```
2320-
[*Examples*](t.ly/wcvY):
2321-
```js
2322-
const sequence = [1, 2, 3];
2323-
sequence.toReversed(); // => [3, 2, 1]
2324-
sequence; // => [1, 2, 3]
2325-
2326-
const array = [1, 2, 3, 4];
2327-
array.toSpliced(1, 2, 5, 6, 7); // => [1, 5, 6, 7, 4]
2328-
array; // => [1, 2, 3, 4]
2329-
2330-
const outOfOrder = [3, 1, 2];
2331-
outOfOrder.toSorted(); // => [1, 2, 3]
2332-
outOfOrder; // => [3, 1, 2]
2333-
2334-
const correctionNeeded = [1, 1, 3];
2335-
correctionNeeded.with(1, 2); // => [1, 2, 3]
2336-
correctionNeeded; // => [1, 1, 3]
2337-
````
23382338
##### [`Array.fromAsync`](https://github.com/tc39/proposal-array-from-async)[⬆](#index)
23392339
Modules [`esnext.array.from-async`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.array.from-async.js).
23402340
```js

Diff for: packages/core-js/actual/array/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ require('../../modules/esnext.array.find-last');
55
require('../../modules/esnext.array.find-last-index');
66
require('../../modules/esnext.array.group-by');
77
require('../../modules/esnext.array.group-by-to-map');
8+
require('../../modules/esnext.array.to-reversed');
9+
require('../../modules/esnext.array.to-sorted');
10+
require('../../modules/esnext.array.to-spliced');
11+
require('../../modules/esnext.array.with');
812

913
module.exports = parent;

Diff for: packages/core-js/actual/array/to-reversed.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require('../../modules/esnext.array.to-reversed');
2+
var entryUnbind = require('../../internals/entry-unbind');
3+
4+
module.exports = entryUnbind('Array', 'toReversed');

Diff for: packages/core-js/actual/array/to-sorted.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require('../../modules/es.array.sort');
2+
require('../../modules/esnext.array.to-sorted');
3+
var entryUnbind = require('../../internals/entry-unbind');
4+
5+
module.exports = entryUnbind('Array', 'toSorted');

Diff for: packages/core-js/actual/array/to-spliced.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require('../../modules/esnext.array.to-spliced');
2+
var entryUnbind = require('../../internals/entry-unbind');
3+
4+
module.exports = entryUnbind('Array', 'toSpliced');

Diff for: packages/core-js/actual/array/virtual/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ require('../../../modules/esnext.array.find-last');
55
require('../../../modules/esnext.array.find-last-index');
66
require('../../../modules/esnext.array.group-by');
77
require('../../../modules/esnext.array.group-by-to-map');
8+
require('../../../modules/esnext.array.to-reversed');
9+
require('../../../modules/esnext.array.to-sorted');
10+
require('../../../modules/esnext.array.to-spliced');
11+
require('../../../modules/esnext.array.with');
812

913
module.exports = parent;

Diff for: packages/core-js/actual/array/virtual/to-reversed.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require('../../../modules/esnext.array.to-reversed');
2+
var entryVirtual = require('../../../internals/entry-virtual');
3+
4+
module.exports = entryVirtual('Array').toReversed;

Diff for: packages/core-js/actual/array/virtual/to-sorted.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require('../../../modules/es.array.sort');
2+
require('../../../modules/esnext.array.to-sorted');
3+
var entryVirtual = require('../../../internals/entry-virtual');
4+
5+
module.exports = entryVirtual('Array').toSorted;

Diff for: packages/core-js/actual/array/virtual/to-spliced.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require('../../../modules/esnext.array.to-spliced');
2+
var entryVirtual = require('../../../internals/entry-virtual');
3+
4+
module.exports = entryVirtual('Array').toSpliced;

Diff for: packages/core-js/actual/array/virtual/with.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require('../../../modules/esnext.array.with');
2+
var entryVirtual = require('../../../internals/entry-virtual');
3+
4+
module.exports = entryVirtual('Array')['with'];

Diff for: packages/core-js/actual/array/with.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require('../../modules/esnext.array.with');
2+
var entryUnbind = require('../../internals/entry-unbind');
3+
4+
module.exports = entryUnbind('Array', 'with');

Diff for: packages/core-js/actual/instance/to-reversed.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var isPrototypeOf = require('../../internals/object-is-prototype-of');
2+
var method = require('../array/virtual/to-reversed');
3+
4+
var ArrayPrototype = Array.prototype;
5+
6+
module.exports = function (it) {
7+
var own = it.toReversed;
8+
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toReversed)) ? method : own;
9+
};

Diff for: packages/core-js/actual/instance/to-sorted.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var isPrototypeOf = require('../../internals/object-is-prototype-of');
2+
var method = require('../array/virtual/to-sorted');
3+
4+
var ArrayPrototype = Array.prototype;
5+
6+
module.exports = function (it) {
7+
var own = it.toSorted;
8+
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSorted)) ? method : own;
9+
};

Diff for: packages/core-js/actual/instance/to-spliced.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var isPrototypeOf = require('../../internals/object-is-prototype-of');
2+
var method = require('../array/virtual/to-spliced');
3+
4+
var ArrayPrototype = Array.prototype;
5+
6+
module.exports = function (it) {
7+
var own = it.toSpliced;
8+
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSpliced)) ? method : own;
9+
};

Diff for: packages/core-js/actual/instance/with.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var isPrototypeOf = require('../../internals/object-is-prototype-of');
2+
var method = require('../array/virtual/with');
3+
4+
var ArrayPrototype = Array.prototype;
5+
6+
module.exports = function (it) {
7+
var own = it['with'];
8+
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype['with'])) ? method : own;
9+
};

Diff for: packages/core-js/actual/typed-array/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
var parent = require('../../stable/typed-array');
22
require('../../modules/esnext.typed-array.find-last');
33
require('../../modules/esnext.typed-array.find-last-index');
4+
require('../../modules/esnext.typed-array.to-reversed');
5+
require('../../modules/esnext.typed-array.to-sorted');
6+
require('../../modules/esnext.typed-array.to-spliced');
7+
require('../../modules/esnext.typed-array.with');
48

59
module.exports = parent;

Diff for: packages/core-js/actual/typed-array/methods.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
var parent = require('../../stable/typed-array/methods');
22
require('../../modules/esnext.typed-array.find-last');
33
require('../../modules/esnext.typed-array.find-last-index');
4+
require('../../modules/esnext.typed-array.to-reversed');
5+
require('../../modules/esnext.typed-array.to-sorted');
6+
require('../../modules/esnext.typed-array.to-spliced');
7+
require('../../modules/esnext.typed-array.with');
48

59
module.exports = parent;

Diff for: packages/core-js/actual/typed-array/to-reversed.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('../../modules/esnext.typed-array.to-reversed');

Diff for: packages/core-js/actual/typed-array/to-sorted.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('../../modules/es.typed-array.sort');
2+
require('../../modules/esnext.typed-array.to-sorted');

Diff for: packages/core-js/actual/typed-array/to-spliced.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('../../modules/esnext.typed-array.to-spliced');

Diff for: packages/core-js/actual/typed-array/with.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('../../modules/esnext.typed-array.with');

Diff for: packages/core-js/features/array/index.js

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ require('../../modules/esnext.array.filter-reject');
99
require('../../modules/esnext.array.is-template-object');
1010
require('../../modules/esnext.array.last-item');
1111
require('../../modules/esnext.array.last-index');
12-
require('../../modules/esnext.array.to-reversed');
13-
require('../../modules/esnext.array.to-sorted');
14-
require('../../modules/esnext.array.to-spliced');
1512
require('../../modules/esnext.array.unique-by');
16-
require('../../modules/esnext.array.with');
1713

1814
module.exports = parent;

Diff for: packages/core-js/features/array/virtual/index.js

-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ require('../../../modules/esnext.array.at');
44
// TODO: Remove from `core-js@4`
55
require('../../../modules/esnext.array.filter-out');
66
require('../../../modules/esnext.array.filter-reject');
7-
require('../../../modules/esnext.array.to-reversed');
8-
require('../../../modules/esnext.array.to-sorted');
9-
require('../../../modules/esnext.array.to-spliced');
107
require('../../../modules/esnext.array.unique-by');
11-
require('../../../modules/esnext.array.with');
128

139
module.exports = parent;
+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require('../../../modules/esnext.array.to-reversed');
2-
var entryVirtual = require('../../../internals/entry-virtual');
1+
var parent = require('../../../actual/array/virtual/to-reversed');
32

4-
module.exports = entryVirtual('Array').toReversed;
3+
module.exports = parent;

Diff for: packages/core-js/features/array/virtual/to-sorted.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require('../../../modules/es.array.sort');
2-
require('../../../modules/esnext.array.to-sorted');
3-
var entryVirtual = require('../../../internals/entry-virtual');
1+
var parent = require('../../../actual/array/virtual/to-sorted');
42

5-
module.exports = entryVirtual('Array').toSorted;
3+
module.exports = parent;
+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require('../../../modules/esnext.array.to-spliced');
2-
var entryVirtual = require('../../../internals/entry-virtual');
1+
var parent = require('../../../actual/array/virtual/to-spliced');
32

4-
module.exports = entryVirtual('Array').toSpliced;
3+
module.exports = parent;

Diff for: packages/core-js/features/array/virtual/with.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require('../../../modules/esnext.array.with');
2-
var entryVirtual = require('../../../internals/entry-virtual');
1+
var parent = require('../../../actual/array/virtual/with');
32

4-
module.exports = entryVirtual('Array')['with'];
3+
module.exports = parent;

Diff for: packages/core-js/features/instance/to-reversed.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
var isPrototypeOf = require('../../internals/object-is-prototype-of');
2-
var method = require('../array/virtual/to-reversed');
1+
var parent = require('../../actual/instance/to-reversed');
32

4-
var ArrayPrototype = Array.prototype;
5-
6-
module.exports = function (it) {
7-
var own = it.toReversed;
8-
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toReversed)) ? method : own;
9-
};
3+
module.exports = parent;

Diff for: packages/core-js/features/instance/to-sorted.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
var isPrototypeOf = require('../../internals/object-is-prototype-of');
2-
var method = require('../array/virtual/to-sorted');
1+
var parent = require('../../actual/instance/to-sorted');
32

4-
var ArrayPrototype = Array.prototype;
5-
6-
module.exports = function (it) {
7-
var own = it.toSorted;
8-
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSorted)) ? method : own;
9-
};
3+
module.exports = parent;

Diff for: packages/core-js/features/instance/to-spliced.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
var isPrototypeOf = require('../../internals/object-is-prototype-of');
2-
var method = require('../array/virtual/to-spliced');
1+
var parent = require('../../actual/instance/to-spliced');
32

4-
var ArrayPrototype = Array.prototype;
5-
6-
module.exports = function (it) {
7-
var own = it.toSpliced;
8-
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSpliced)) ? method : own;
9-
};
3+
module.exports = parent;

Diff for: packages/core-js/features/instance/with.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
var isPrototypeOf = require('../../internals/object-is-prototype-of');
2-
var method = require('../array/virtual/with');
1+
var parent = require('../../actual/instance/with');
32

4-
var ArrayPrototype = Array.prototype;
5-
6-
module.exports = function (it) {
7-
var own = it['with'];
8-
return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype['with'])) ? method : own;
9-
};
3+
module.exports = parent;

Diff for: packages/core-js/features/typed-array/index.js

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ require('../../modules/esnext.typed-array.at');
88
require('../../modules/esnext.typed-array.filter-out');
99
require('../../modules/esnext.typed-array.filter-reject');
1010
require('../../modules/esnext.typed-array.group-by');
11-
require('../../modules/esnext.typed-array.to-reversed');
12-
require('../../modules/esnext.typed-array.to-sorted');
13-
require('../../modules/esnext.typed-array.to-spliced');
1411
require('../../modules/esnext.typed-array.unique-by');
15-
require('../../modules/esnext.typed-array.with');
1612

1713
module.exports = parent;

Diff for: packages/core-js/features/typed-array/methods.js

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ require('../../modules/esnext.typed-array.at');
88
require('../../modules/esnext.typed-array.filter-out');
99
require('../../modules/esnext.typed-array.filter-reject');
1010
require('../../modules/esnext.typed-array.group-by');
11-
require('../../modules/esnext.typed-array.to-reversed');
12-
require('../../modules/esnext.typed-array.to-sorted');
13-
require('../../modules/esnext.typed-array.to-spliced');
1411
require('../../modules/esnext.typed-array.unique-by');
15-
require('../../modules/esnext.typed-array.with');
1612

1713
module.exports = parent;

Diff for: packages/core-js/features/typed-array/to-reversed.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
require('../../modules/esnext.typed-array.to-reversed');
1+
var parent = require('../../actual/typed-array/to-reversed');
2+
3+
module.exports = parent;

Diff for: packages/core-js/features/typed-array/to-sorted.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
require('../../modules/es.typed-array.sort');
2-
require('../../modules/esnext.typed-array.to-sorted');
1+
var parent = require('../../actual/typed-array/to-sorted');
2+
3+
module.exports = parent;

Diff for: packages/core-js/features/typed-array/to-spliced.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
require('../../modules/esnext.typed-array.to-spliced');
1+
var parent = require('../../actual/typed-array/to-spliced');
2+
3+
module.exports = parent;

0 commit comments

Comments
 (0)