Commit Graph
4 Commits
Author SHA1 Message Date
Jeffrey Morlan 48a610c34f Fix ECMA-402 declarations (issue #10618)
1. Make String.prototype.localeCompare's `locales` parameter optional,
   so `undefined` is allowed.
2. Declare the `locales` parameter as a `string | string[]` union
   instead of using overloads. Having separate overloads for `string`
   and `string[]` unnecessarily prevents passing a `string | string[]`.
   (These overloads predate the introduction of union types.)
2016-09-10 12:25:39 -07:00
Jeffrey Morlan ed453ddcfc Add comment 2015-11-28 10:41:37 -08:00
Jeffrey Morlan c72861ebd7 Add test case 2015-11-09 21:05:05 -08:00
Jeffrey Morlan 470d1d28ab Fix issue #5444
reportImplementationExpectedError: The next node in the tree is not
necessarily consecutive. This happens due to syntax errors, e.g.

    class C { foo(), foo(); }
2015-11-08 12:00:27 -08:00