Replace uses of 'Symbol.isRegExp' with 'Symbol.toPrimitive'.

This commit is contained in:
Daniel Rosenwasser
2015-04-09 14:06:57 -07:00
parent f75c9a6624
commit 33028d5199
15 changed files with 24 additions and 24 deletions

10
src/lib/es6.d.ts vendored
View File

@@ -52,19 +52,19 @@ interface SymbolConstructor {
/**
* A method that returns the default iterator for an object.Called by the semantics of the
* for-of statement.
* for-of statement.
*/
iterator: symbol;
/**
* A method that converts an object to a corresponding primitive value.Called by the ToPrimitive
* abstract operation.
* abstract operation.
*/
toPrimitive: symbol;
/**
* A String value that is used in the creation of the default string description of an object.
* Called by the built- in method Object.prototype.toString.
* A String value that is used in the creation of the default string description of an object.
* Called by the built-in method Object.prototype.toString.
*/
toStringTag: symbol;
@@ -106,7 +106,7 @@ interface ObjectConstructor {
getOwnPropertySymbols(o: any): symbol[];
/**
* Returns true if the values are the same value, false otherwise.
* Returns true if the values are the same value, false otherwise.
* @param value1 The first value.
* @param value2 The second value.
*/