fs: Remove nullable markers from WriteParams members#182
fs: Remove nullable markers from WriteParams members#182usamanadeemdeveloper wants to merge 2 commits intowhatwg:mainfrom
Conversation
|
The commit message doesn't seem accurate. You're making them non-nullable, which means that passing null will throw. That is probably what we want, but it will require test changes and such so you need to restore the PR template as well and fill it out. |
`size`, `position`, and `data` in the `WriteParams` dictionary were marked as nullable (?), but the write() algorithm only checks for their existence and never handles null values. Making them non-nullable means that passing null will now throw a TypeError at the WebIDL boundary, which is the correct behavior. Fixes whatwg#181.
98be590 to
1122ace
Compare
Thank you for the feedback! I've addressed all three points:
|
its been a while and no reply from your side would you consider the PR? |
|
I think it should be considered, yes. Your test PR is a 404 however (once you fix that I recommend linking it from the original post at the top, so all the relevant information is collected there). I also want @a-sully or @mkruisselbrink to look at this as this would require changes to all implementations. Which also means you can't say N/A for implementation bugs. Maybe @jesup too. |
AAh I think I did pretty much everything what you asked now! Thanks for guidance |
f9b48c8 to
098f00d
Compare
|
Hi @annevk — wanted to give you a full status update and flag a couple of things that need attention. What's been completed since your last review (Mar 6):
Why I pushed an empty commit today: CI was failing because Request: Could you please approve the CI workflow run so it can execute? And if possible, could you nudge @a-sully and @mkruisselbrink? They were assigned as reviewers on March 2 — it's been 3 weeks with no response. A quick ping from you would go a long way. Happy to provide any additional context they need. Thanks for your time and guidance throughout this process! |
|
@annevk — one small follow-up on the Participation check. I've already signed the individual agreement at https://participate.whatwg.org, so my entry should be in the participant-data repository with Thanks again for approving the CI run! |
Hi @annevk, thanks for the thumbs up! Any idea when @a-sully or @mkruisselbrink might get a chance to review this? |
size,position, anddatain theWriteParamsdictionary weremarked as nullable (?), but the write() algorithm only checks for their
existence and never handles null values. Making them non-nullable means
that passing null will now throw a TypeError at the WebIDL boundary,
which is the correct behavior.
Fixes #181.
This is a spec alignment fix. The algorithm has never handled null for
these members, so making them non-nullable correctly reflects actual
intended behavior (also consistent with Chromium, Gecko, and WebKit
implementations).
be reviewed and commented upon at:
message to use. ✓