mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Add a simple API to reject promises with DOM error values.
This commit is contained in:
parent
ae81ab3972
commit
27d44c8d10
5 changed files with 35 additions and 2 deletions
|
@ -518,6 +518,7 @@ interface TestBinding {
|
|||
Promise<any> promiseNativeHandler(SimpleCallback? resolve, SimpleCallback? reject);
|
||||
void promiseResolveNative(Promise<any> p, any value);
|
||||
void promiseRejectNative(Promise<any> p, any value);
|
||||
void promiseRejectWithTypeError(Promise<any> p, USVString message);
|
||||
|
||||
void panic();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue