-
Notifications
You must be signed in to change notification settings - Fork 65
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
Editorial: Use more precise exceptions #417
Conversation
index.bs
Outdated
@@ -322,7 +325,7 @@ should be treated by the user agent as the user intending to grant read access t | |||
for the returned files. As such, at the time the promise returned by one of the [=local file system handle factories=] | |||
resolves, [=permission state=] for a descriptor with {{FileSystemPermissionDescriptor/handle}} set to the returned handle, | |||
and {{FileSystemPermissionDescriptor/mode}} set to {{"read"}} | |||
should be {{PermissionState/"granted"}}. | |||
should be {{PermissionState/granted}}. |
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.
We still want quotes, just around the whole thing i.e. "{{PermissionState/granted}}"
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.
Apologies, I was considering making this change (to address whatwg/fs#133) in this PR and then decided to leave it for a follow-up... but incorrectly undo-ed my changes 🤦
I'll send a follow-up with these changes
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.
one nit, otherwise LG
Before: `throw a {{SecurityError}}` After: `[=throw=] a "{{SecurityError}}" {{DOMException}}` See whatwg/fs#63 and whatwg/fs#89. Fixed in the upstream spec in whatwg/fs#70 and whatwg/fs#91, respectively SHA: a350a87 Reason: push, by @a-sully Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Before: `{{PermissionState/"granted"}}` After: `"{{PermissionState/granted}}"` See whatwg/fs#133. Also called out here: #417 (comment)
Before: `{{PermissionState/"granted"}}` After: `"{{PermissionState/granted}}"` See whatwg/fs#133. Also called out here: #417 (comment) SHA: 44df0c4 Reason: push, by @a-sully Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Before:
throw a {{SecurityError}}
After:
[=throw=] a "{{SecurityError}}" {{DOMException}}
See whatwg/fs#63 and whatwg/fs#89. Fixed in the upstream spec in whatwg/fs#70 and whatwg/fs#91, respectively
Preview | Diff