paulmillr / es6-shim

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

Add tests to highlight Number constructor whitspace handling deficiencies #368

Closed Xotic750 closed 8 years ago

Xotic750 commented 8 years ago

Number(' 2 ') === 2 So just like with trim, different environments handle internal trimming differently and inconsistently.

ljharb commented 8 years ago

Related to #354

ljharb commented 8 years ago

Thanks, fixed.