Merge pull request #4 from zbjornson/zbpatch1
Call toString on args to match browser behavior.
This commit is contained in:
		
						commit
						0f12759eb8
					
				@ -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;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user