Fix atob to match browser implementations

Test case:
atob('/A==') === String.fromCharCode(252) should be true
This commit is contained in:
Victor Costan 2012-09-13 02:15:36 -03:00
부모 87f7024d3e
커밋 b35a566ac6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

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