-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Intl.NumberFormat
support, and cache NumberFormat
objects whe…
…n reused (#122) * Give feature tests a callback so they can be reused * Implement use of Intl.NumberFormat where available * Implement naïve caching of Intl.NumberFormat instances * Factor out `Intl.NumberFormat` instance generation and cache * Only test locale support when testing toLocaleString support * Handle the unlikely case that `Intl.NumberFormat` works but `toLocaleString` doesn't * Update README with Intl.NumberFormat usage info Thank you for the PR and ping... again... @ticky. Sorry it took so long to get back to this!
- Loading branch information
Showing
2 changed files
with
105 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters