paulmillr / es6-shim

ECMAScript 6 compatibility shims for legacy JS engines
http://paulmillr.com
MIT License
3.11k stars 387 forks source link

Update `Math.fround` implementation to a much smaller one. #332

Closed ljharb closed 9 years ago

ljharb commented 9 years ago

From https://github.com/paulmillr/es6-shim/pull/140#issuecomment-91787165.

This appears to pass tests across many Firefox/Chrome/IE/Safari/Opera versions.

paulmillr commented 9 years ago

Like it! Less code, same features.