google/closure-compiler — pull request #689 by usmonster (2014-11-04 12:37:25+00:00)
Title: Number.prototype.toLocaleString([locales[, options]]) extern

There is an extern for `Object.prototype.toLocaleString()` in [es3.js](/google/closure-compiler/blob/master/externs/es3.js).

Should there also be an overriding extern for [`Number.prototype.toLocaleString()`](//developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString) with its two optional parameters, perhaps in one of either the ES5 or (more likely) ES6 extern files? Or was this intentionally left out?

Right now, passing anything to the method gives me a warning based on `Object.prototype.toLocaleString()`, which expects exactly zero arguments.