Skip to content

Commit

Permalink
Fix scope in md5 (denoland/deno#6662)
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats authored and denobot committed Feb 1, 2021
1 parent 6d22f5f commit 732792a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hash/md5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 732792a

Please sign in to comment.