Skip to content

Commit a3fc74e

Browse files
committed
Actually update the lib text to say unique symbol, too (this is unneeded with compat code in place, but this makes goto-def make more sense)
1 parent 31dc466 commit a3fc74e

4 files changed

+13
-13
lines changed

src/lib/es2015.iterable.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ interface SymbolConstructor {
55
* A method that returns the default iterator for an object. Called by the semantics of the
66
* for-of statement.
77
*/
8-
readonly iterator: symbol;
8+
readonly iterator: unique symbol;
99
}
1010

1111
interface IteratorYieldResult<TYield> {

src/lib/es2015.symbol.wellknown.d.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -5,61 +5,61 @@ interface SymbolConstructor {
55
* A method that determines if a constructor object recognizes an object as one of the
66
* constructor’s instances. Called by the semantics of the instanceof operator.
77
*/
8-
readonly hasInstance: symbol;
8+
readonly hasInstance: unique symbol;
99

1010
/**
1111
* A Boolean value that if true indicates that an object should flatten to its array elements
1212
* by Array.prototype.concat.
1313
*/
14-
readonly isConcatSpreadable: symbol;
14+
readonly isConcatSpreadable: unique symbol;
1515

1616
/**
1717
* A regular expression method that matches the regular expression against a string. Called
1818
* by the String.prototype.match method.
1919
*/
20-
readonly match: symbol;
20+
readonly match: unique symbol;
2121

2222
/**
2323
* A regular expression method that replaces matched substrings of a string. Called by the
2424
* String.prototype.replace method.
2525
*/
26-
readonly replace: symbol;
26+
readonly replace: unique symbol;
2727

2828
/**
2929
* A regular expression method that returns the index within a string that matches the
3030
* regular expression. Called by the String.prototype.search method.
3131
*/
32-
readonly search: symbol;
32+
readonly search: unique symbol;
3333

3434
/**
3535
* A function valued property that is the constructor function that is used to create
3636
* derived objects.
3737
*/
38-
readonly species: symbol;
38+
readonly species: unique symbol;
3939

4040
/**
4141
* A regular expression method that splits a string at the indices that match the regular
4242
* expression. Called by the String.prototype.split method.
4343
*/
44-
readonly split: symbol;
44+
readonly split: unique symbol;
4545

4646
/**
4747
* A method that converts an object to a corresponding primitive value.
4848
* Called by the ToPrimitive abstract operation.
4949
*/
50-
readonly toPrimitive: symbol;
50+
readonly toPrimitive: unique symbol;
5151

5252
/**
5353
* A String value that is used in the creation of the default string description of an object.
5454
* Called by the built-in method Object.prototype.toString.
5555
*/
56-
readonly toStringTag: symbol;
56+
readonly toStringTag: unique symbol;
5757

5858
/**
5959
* An Object whose own property names are property names that are excluded from the 'with'
6060
* environment bindings of the associated objects.
6161
*/
62-
readonly unscopables: symbol;
62+
readonly unscopables: unique symbol;
6363
}
6464

6565
interface Symbol {

src/lib/es2018.asynciterable.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface SymbolConstructor {
66
* A method that returns the default async iterator for an object. Called by the semantics of
77
* the for-await-of statement.
88
*/
9-
readonly asyncIterator: symbol;
9+
readonly asyncIterator: unique symbol;
1010
}
1111

1212
interface AsyncIterator<T, TReturn = any, TNext = undefined> {

src/lib/es2020.symbol.wellknown.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface SymbolConstructor {
66
* A regular expression method that matches the regular expression against a string. Called
77
* by the String.prototype.matchAll method.
88
*/
9-
readonly matchAll: symbol;
9+
readonly matchAll: unique symbol;
1010
}
1111

1212
interface RegExp {

0 commit comments

Comments
 (0)