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

If FileSystemSyncAccessHandle.close() is synchronous, why does it return a Promise? #29420

Closed
quickstep24 opened this issue Oct 2, 2023 · 0 comments · Fixed by #29449
Closed
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@quickstep24
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/FileSystemSyncAccessHandle/close

What specific section or headline is this issue about?

Return value

What information was incorrect, unhelpful, or incomplete?

All methods of FileSystemSyncAccessHandle are described as synchronous. But the mdn webdocs states that some of them return a Promise. This includes close(), flush(), getSize() and truncate().

What did you expect to see?

Return nothing or an explicit value.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@quickstep24 quickstep24 added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 2, 2023
@github-actions github-actions bot added the Content:WebAPI Web API docs label Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant