Skip to content

Commit c978c8f

Browse files
committed
add an entry for exactors proposal
1 parent 8957db1 commit c978c8f

File tree

5 files changed

+24
-1
lines changed

5 files changed

+24
-1
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@
2424
- [`RegExp.escape` stage 2 proposal](https://github.com/tc39/proposal-regex-escaping)
2525
- Moved to hex-escape semantics, [regex-escaping/67](https://github.com/tc39/proposal-regex-escaping/pull/67)
2626
- It's not the final change of the way of escaping, waiting for [regex-escaping/77](https://github.com/tc39/proposal-regex-escaping/pull/77) soon
27-
- [Pattern matching proposal](https://github.com/tc39/proposal-pattern-matching):
27+
- [Pattern matching stage 1 proposal](https://github.com/tc39/proposal-pattern-matching):
2828
- Built-ins:
2929
- `Symbol.customMatcher`
3030
- Once again, [the used well-known symbol was renamed](https://github.com/tc39/proposal-pattern-matching/pull/295)
3131
- Added new entries for that
32+
- [Extractors stage 1 proposal](https://github.com/tc39/proposal-extractors):
33+
- Built-ins:
34+
- `Symbol.customMatcher`
35+
- Since the `Symbol.customMatcher` well-known symbol from the pattern matching proposal is also used in the exactors proposal, added an entry also for this proposal
3236
- Added [`URL.parse`](https://url.spec.whatwg.org/#dom-url-parse), [url/825](https://github.com/whatwg/url/pull/825)
3337
- Engines bugs fixes:
3438
- Added a fix of [Safari `{ Object, Map }.groupBy` bug that does not support iterable primitives](https://bugs.webkit.org/show_bug.cgi?id=271524)

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3])
186186
- [`String.cooked`](#stringcooked)
187187
- [`String.prototype.codePoints`](#stringprototypecodepoints)
188188
- [`Symbol.customMatcher` for pattern matching](#symbolcustommatcher-for-pattern-matching)
189+
- [`Symbol.customMatcher` for extractors](#symbolcustommatcher-for-extractors)
189190
- [Stage 0 proposals](#stage-0-proposals)
190191
- [`Function.prototype.demethodize`](#functionprototypedemethodize)
191192
- [`Function.{ isCallable, isConstructor }`](#function-iscallable-isconstructor-)
@@ -3098,6 +3099,19 @@ core-js/proposals/pattern-matching-v2
30983099
core-js(-pure)/full/symbol/custom-matcher
30993100
```
31003101

3102+
##### [`Symbol.customMatcher` for extractors](https://github.com/tc39/proposal-extractors)[⬆](#index)
3103+
Module [`esnext.symbol.custom-matcher`](https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/esnext.symbol.custom-matcher.js).
3104+
```js
3105+
class Symbol {
3106+
static customMatcher: @@customMatcher;
3107+
}
3108+
```
3109+
[*CommonJS entry points:*](#commonjs-api)
3110+
```js
3111+
core-js/proposals/pattern-extractors
3112+
core-js(-pure)/full/symbol/custom-matcher
3113+
```
3114+
31013115
#### Stage 0 proposals[⬆](#index)
31023116
[*CommonJS entry points:*](#commonjs-api)
31033117
```js
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
// https://github.com/tc39/proposal-extractors
3+
require('../modules/esnext.symbol.custom-matcher');

packages/core-js/stage/1.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ require('../proposals/array-unique');
77
require('../proposals/collection-methods');
88
require('../proposals/collection-of-from');
99
require('../proposals/data-view-get-set-uint8-clamped');
10+
require('../proposals/extractors');
1011
require('../proposals/keys-composition');
1112
require('../proposals/math-extensions');
1213
require('../proposals/math-signbit');

tests/entries/unit.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ for (PATH of ['core-js-pure', 'core-js']) {
924924
load('proposals/efficient-64-bit-arithmetic');
925925
load('proposals/error-cause');
926926
load('proposals/explicit-resource-management');
927+
load('proposals/extractors');
927928
load('proposals/float16');
928929
load('proposals/function-demethodize');
929930
load('proposals/function-is-callable-is-constructor');

0 commit comments

Comments
 (0)