committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
4
node_modules/abab/lib/atob.js
generated
vendored
4
node_modules/abab/lib/atob.js
generated
vendored
@ -5,6 +5,10 @@
|
||||
* instead of throwing INVALID_CHARACTER_ERR we return null.
|
||||
*/
|
||||
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
|
||||
// ToString, which in our case amounts to using a template literal.
|
||||
data = `${data}`;
|
||||
|
4
node_modules/abab/lib/btoa.js
generated
vendored
4
node_modules/abab/lib/btoa.js
generated
vendored
@ -5,6 +5,10 @@
|
||||
* RFC 4648.
|
||||
*/
|
||||
function btoa(s) {
|
||||
if (arguments.length === 0) {
|
||||
throw new TypeError("1 argument required, but only 0 present.");
|
||||
}
|
||||
|
||||
let i;
|
||||
// String conversion as required by Web IDL.
|
||||
s = `${s}`;
|
||||
|
Reference in New Issue
Block a user