-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
WebAssembly | Memory - add note about allocation failure #27017
Conversation
Preview URLs (comment last updated: 2023-05-31 14:08:22) |
files/en-us/webassembly/javascript_interface/memory/memory/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 yes, this looks a lot better, thank you @phosra ! Approving, but not merging because this has Prettier errors. Would you be able to fix them? I'm sorry about our rather contributor-hostile CI :(.
Unfortunately for myself (I had to mention it elsewhere too #27018 (comment)), I don't have a simple means of doing so on my local system. May I have any suggestions from yourself? |
I'm asking the other maintainers if we can change the way we do this, as it is (to me) a systemic issue. So we'll have to see what happens. Maybe some other helpful person will fix your PR in the meantime (but the systemic issue will remain). |
@phosra @wbamberg The trick is to paste the entire file into https://prettier.io/playground and paste the result back. |
Thanks all, merging shortly as everything looks ready to go 👍🏻 |
Description
Allocating
WebAssembly.Memory
is allowed to sporadically fail should the UA decide to do so or be unable to do so, as per the specification.Motivation
It conveys the error that may occur if the existing described cases do not apply.
Additional details
From https://webassembly.github.io/spec/js-api/#dom-memory-memory.