2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
10 /* null ,*/ undefined,
20 for (var i = 0; i < 30; i++) {
22 str += i % 2 ? "b" : "a";
25 onmessage = function (event) {
26 data.forEach(function (string) {
27 var encoded = btoa(string);
28 postMessage({ type: "btoa", value: encoded });
29 postMessage({ type: "atob", value: atob(encoded) });
40 throw "atob didn't throw when called without an argument!";
51 throw "btoa didn't throw when called without an argument!";
54 postMessage({ type: "done" });