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

throwについて現実的な利用について書く #359

Open
azu opened this issue Dec 3, 2021 · 0 comments
Open

throwについて現実的な利用について書く #359

azu opened this issue Dec 3, 2021 · 0 comments
Labels
Status: Proposal Request for comments

Comments

@azu
Copy link
Owner

azu commented Dec 3, 2021

https://azu.github.io/promises-book/#not-throw-use-reject
Async Awaitの場合はthrowの方が記法として一貫性があるため、throwした方が見た目がわかりやすい。
実際にthrowしてるケースの方が多いはず。

ただ、DevToolsでキャッチされる点は変わってないので、その辺のthrowについて何かを追加したい。

@azu azu added the Status: Proposal Request for comments label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Proposal Request for comments
Projects
None yet
Development

No branches or pull requests

1 participant