Add a simple API to reject promises with DOM error values.

This commit is contained in:
Josh Matthews 2016-09-06 19:58:26 -04:00
parent ae81ab3972
commit 27d44c8d10
5 changed files with 35 additions and 2 deletions

View file

@ -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();
};