Call toString on args to match browser behavior.

Este commit está contenido en:
Zach Bjornson 2013-07-20 09:22:32 -07:00
padre 93ce8ddd9f
commit f76c0404fb

Ver fichero

@ -2,7 +2,7 @@
"use strict"; "use strict";
function btoa(str) { function btoa(str) {
return new Buffer(str, 'binary').toString('base64'); return new Buffer(str.toString(), 'binary').toString('base64');
} }
module.exports = btoa; module.exports = btoa;