Repository navigation
Closed
Labels
BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptES6Relates to the ES6 SpecFixedA PR has been merged for this issue
Milestone
Description
- 6.1.5.1 - Add built in symbols to
SymbolConstructor:match,replace,search,species,split(from Obsolete 'isRegExp' and several non-mentioned well-known symbols in lib.es6.d.ts #2524). - 19.2.3 - Remove
Function.toMethod. - 19.2.3.6 - Add
[Symbol.hasInstance]method toFunctioninterface. - 20.3.4.45 - Add
[Symbol.toPrimitive]method toDateinterface. - 21.1.3.7 - Add
includesmethod toStringinterface, and removecontains - 21.1.3.11 - Add overload for
matchmethod onStringinterface that accepts an object with a compatible[Symbol.match]method. - 21.1.3.14 - Add overload for
replacemethod onStringinterface that accepts an object with a compatible[Symbol.replace]method. - 21.1.3.15 - Add overload for
searchmethod onStringinterface that accepts an object with a compatible[Symbol.search]method. - 21.1.3.17 - Add overload for
splitmethod onStringinterface that accepts an object with a compatible[Symbol.split]method. - 21.2.4.2 - Add
[Symbol.species]property toRegExpConstructorinterface. - 21.2.5.6 - Add
[Symbol.match]method toRegExpinterface. - 21.2.5.8 - Add
[Symbol.replace]method toRegExpinterface. - 21.2.5.9 - Add
[Symbol.search]method toRegExpinterface. - 21.2.5.11 - Add
[Symbol.split]method toRegExpinterface. - 22.1.2.5 - Add
[Symbol.species]property toArrayConstructorinterface. - 22.1.3.31 - Add
[Symbol.unscopables]property toArrayinterface. - 22.2.1.4, 22.2.2.1.1 - Add construct signature overload on Typed Array constructor interfaces to allow
Iterable<number>. - 22.2.2.4 - Add
[Symbol.species]property to Typed Array constructor interfaces. - 22.2.3.31 - Add
[Symbol.toStringTag]property to Typed Array interfaces. - 23.1.2.2 - Add
[Symbol.species]property toMapConstructorinterface. - 23.2.2.2 - Add
[Symbol.species]property toSetConstructorinterface. - 24.1.3.3 - Add
[Symbol.species]property toArrayBufferConstructorinterface. - 25.2.3.3 - Add
[Symbol.toStringTag]property toGeneratorFunctioninterface. - 25.4.4.1 -
Promise.allcan take an iterable. - 25.4.4.3 -
Promise.racecan take an iterable. - 25.4.4.6 - Add
[Symbol.species]property toPromiseConstructorinterface. - 25.4.5.4 - Add
[Symbol.toStringTag]property toPromiseinterface. - 26.1.2 - Update
Reflect.constructto add thirdnewTargetargument.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptES6Relates to the ES6 SpecFixedA PR has been merged for this issue
Activity
dead-claudia commentedon Jul 8, 2015
And it's now the current standard.
DanielRosenwasser commentedon Aug 18, 2015
Ron Buckton (@rbuckton) it looks like
Promise.allandPromise.racealready take an iterable, so I'm going to check those off.17 remaining items
borekb commentedon Nov 2, 2016
Another one missing:
Array.prototype.includes(22.1.3.11).mhegazy commentedon Nov 2, 2016
This is not part of ES6, this is actually part of ES7/ES2016. the definition can be included using
--lib es2016borekb commentedon Nov 2, 2016
Oh I see, thanks for the pointer!
Add Symbol.species to ArrayConstructor, MapConstructor, SetConstructo…
Add Symbol.species to ArrayConstructor, MapConstructor, SetConstructo…
mhegazy commentedon Nov 9, 2017
Fixed by #18652