mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add exception to rejection logic in generic_call
(#32950)
* exception in JS Promise Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * EXCEPTION_TO_REJECTION on generic_call Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * PromiseRejectionEvent should handle promise as object Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * expectations Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
1d464a576a
commit
68f4b359c5
16 changed files with 62 additions and 76 deletions
|
@ -7,11 +7,11 @@
|
|||
[Exposed=(Window,Worker)]
|
||||
interface PromiseRejectionEvent : Event {
|
||||
[Throws] constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
|
||||
readonly attribute Promise<any> promise;
|
||||
readonly attribute object promise;
|
||||
readonly attribute any reason;
|
||||
};
|
||||
|
||||
dictionary PromiseRejectionEventInit : EventInit {
|
||||
required Promise<any> promise;
|
||||
required object promise;
|
||||
any reason;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue