Comparing version
@@ -8,2 +8,6 @@ "use strict"; | ||
function atob(data) { | ||
if (arguments.length === 0) { | ||
throw new TypeError("1 argument required, but only 0 present."); | ||
} | ||
// Web IDL requires DOMStrings to just be converted using ECMAScript | ||
@@ -10,0 +14,0 @@ // ToString, which in our case amounts to using a template literal. |
@@ -8,2 +8,6 @@ "use strict"; | ||
function btoa(s) { | ||
if (arguments.length === 0) { | ||
throw new TypeError("1 argument required, but only 0 present."); | ||
} | ||
let i; | ||
@@ -10,0 +14,0 @@ // String conversion as required by Web IDL. |
{ | ||
"name": "abab", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "WHATWG spec-compliant implementations of window.atob and window.btoa.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
161
3.87%10444
-6.19%7
-12.5%