Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atob throws incorrect error when no argument is passed. #13343

Closed
benjamingr opened this issue Jan 11, 2022 · 2 comments
Closed

atob throws incorrect error when no argument is passed. #13343

benjamingr opened this issue Jan 11, 2022 · 2 comments

Comments

@benjamingr
Copy link
Contributor

Deno throws a DOMException when atob() is run (no argument) but it should throw a TypeError like webidl says. The DOMException is from trying to convert it to a string.

Deno's current behavior is the same as atob(undefined).

A fix should be pretty simple.

Saw this here nodejs/node#41450 and namely nodejs/node#41450 (comment)

@lucacasonato
Copy link
Member

@DerekNonGeneric already reported it to me directly. Fix in #13341 :-)

@benjamingr
Copy link
Contributor Author

Ah cool, closing this one then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants