1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

Fix scope in std/md5 (#6662)

This commit is contained in:
crowlKats 2020-07-06 17:28:10 +02:00 committed by GitHub
parent 8788553247
commit c7afbdaee2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,7 @@ export class Md5 {
for (let i = 0; i < data.length; ++i) {
dataString += String.fromCharCode(data[i]);
}
return window.btoa(dataString);
return btoa(dataString);
}
default:
throw new Error("md5: invalid format");