-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[zh-cn]: fix mistranslation #25234
[zh-cn]: fix mistranslation #25234
Conversation
Preview URLs Flaws (7)URL:
(comment last updated: 2025-01-10 14:05:15) |
- {{domxref("Window.unhandledrejection_event", "unhandledrejection")}} | ||
- : 当 Promise 被拒绝,但没有提供 `reject` 函数来处理该拒绝事件时,会派发此事件。 | ||
- {{domxref("Window.rejectionhandled_event", "rejectionhandled")}} | ||
- : 当 Promise 被拒绝并触发了`unhandledrejection`事件后再处理该拒绝事件时,会派发此事件。 |
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.
- : 当 Promise 被拒绝并触发了`unhandledrejection`事件后再处理该拒绝事件时,会派发此事件。 | |
- : 当 Promise 被拒绝并触发了 `unhandledrejection` 事件后再处理该拒绝事件时,会派发此事件。 |
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.
这段内容请参考英文原文进行翻译,现在是存在差异的
Co-authored-by: skyclouds2001 <[email protected]>
请按 #25234 (comment) 的说明再修改一下 |
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.
感谢 @vhtmui 🙏,修改后还是有点不一致,我自行调整了一下
感谢帮助🙏 |
Description
fix :
当 Promise 被拒绝、并且在
reject函数处理该拒绝事件之后会派发此事件。
to:
当 Promise 被拒绝并触发了
unhandledrejection事件后再处理该拒绝事件时,会派发此事件。
The original translation did not indicate that the rejectionhandled event was sent because the error was handled late.
原意强调错误处理晚于
unhandledrejection
事件的触发。