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

Misleading error message with incorrect type #183

Open
tezlm opened this issue Dec 26, 2024 · 0 comments
Open

Misleading error message with incorrect type #183

tezlm opened this issue Dec 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tezlm
Copy link

tezlm commented Dec 26, 2024

deno_dom version v0.1.48, deno 2.1.2

// `123` can be anything that isn't a string
new DOMParser().parseFromString(123, "text/html")

This errors with "Uncaught RuntimeError: memory access out of bounds". It would be nice to have a more helpful error message, something like "invalid type: expected string".

@0kku 0kku added the bug Something isn't working label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants