servo/servo — pull request #3082 by ChrisParis (2014-08-13 22:03:20+00:00)
Title: Implement window.atob/btoa

This provides functionality required in https://github.com/servo/servo/issues/3020. The implementation uses serialize::base64, but some preprocessing is required in order to match the HTML spec and pass the wpt tests. It's possible to improve efficiency by performing the extra work inline, within the serialize::base64 implementation, if it's desireable to change the standard library to match the web spec. For now, here's an implementation that passes the wpt tests and uses the Rust library as it is today.