inexorabletash / text-encoding

Polyfill for the Encoding Living Standard's API
Other
722 stars 267 forks source link

Inconsistent behavior #58

Closed jimmywarting closed 8 years ago

jimmywarting commented 8 years ago
new TextEncoder().encode(false) // Chrome, Firefox: [102, 97, 108, 115, 101]
new TextEncoder().encode(0)     // Chrome, Firefox: [48]

new TextEncoder().encode(false) // Polyfill: []
new TextEncoder().encode(0)     // Polyfill: []