mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Clear consumed rejections and add FIXME comments
This commit is contained in:
parent
9039a5cc71
commit
f952d7ce0a
1 changed files with 7 additions and 0 deletions
|
@ -256,6 +256,13 @@ pub fn notify_about_rejected_promises(global: &GlobalScope) {
|
|||
global.upcast(),
|
||||
).unwrap();
|
||||
}
|
||||
|
||||
if global.get_consumed_rejections().borrow().len() > 0 {
|
||||
// FIXME(cybai): Implement `rejectionhandled` event instead of clearing the whole
|
||||
// consumed rejections
|
||||
// https://html.spec.whatwg.org/multipage/#the-hostpromiserejectiontracker-implementation
|
||||
global.get_consumed_rejections().borrow_mut().clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue