-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
performance.memory is incorrectly marked as available in Web Workers #36402
Comments
@skyclouds2001 FYI |
per BCD, this feature is not standard and only supported in chromium-based browsers as for my test using https://worker-playground.glitch.me/ also indicate this feature is only available in window scope also confirmed in chromium source code |
I think you mean "only available on window"? The IDL in Chromium also says it's only exposed on window. |
Yes |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Performance/memory
What specific section or headline is this issue about?
"Note: This feature is available in Web Workers."
What information was incorrect, unhelpful, or incomplete?
#36181 incorrectly marked
performance.memory
as being available in Web Workers – it isn't.What did you expect to see?
No "Note: This feature is available in Web Workers" alert.
Do you have any supporting links, references, or citations?
new Worker("data:text/javascript," + encodeURIComponent("console.log(performance.memory)"))
in your consoleundefined
being loggedDo you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: