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

🐛 Bug Report — Runtime APIs - missing Symbol.toStringTag everywhere #2769

Closed
panva opened this issue Sep 22, 2024 · 2 comments · Fixed by #2771
Closed

🐛 Bug Report — Runtime APIs - missing Symbol.toStringTag everywhere #2769

panva opened this issue Sep 22, 2024 · 2 comments · Fixed by #2771

Comments

@panva
Copy link
Contributor

panva commented Sep 22, 2024

All web api interface i've tried to get the Symbol.toStringTag give undefined, instead of their expected value.

For instance:

console.log('Response' == Response.prototype[Symbol.toStringTag])
console.log('Request' == Request.prototype[Symbol.toStringTag])
console.log('Headers' == Headers.prototype[Symbol.toStringTag])
console.log('URLSearchParams' == URLSearchParams.prototype[Symbol.toStringTag])
console.log('CryptoKey' == CryptoKey.prototype[Symbol.toStringTag])

logs all false where all true is expected

I can't check all prototypes for you but since the few i've tried all fail this setup it seems to be a global issue with these classes.

@panva
Copy link
Contributor Author

panva commented Sep 23, 2024

refs: #1607, #1700

@panva
Copy link
Contributor Author

panva commented Sep 23, 2024

cc @jasnell

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

Successfully merging a pull request may close this issue.

1 participant