feat(extends): extend promise

This commit is contained in:
Roberto Huertas
2018-08-24 01:25:43 +02:00
parent 045138f397
commit 042cfad5ce
3 changed files with 13 additions and 0 deletions

View File

@ -3783,6 +3783,7 @@ extern {
/// an asynchronous operation, and its resulting value.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
#[wasm_bindgen(extends = Object)]
pub type Promise;
/// Creates a new `Promise` with the provided executor `cb`