Merge pull request #957 from alexcrichton/promise-clone

js_sys: Add `#[derive(Clone, Debug)]` to `Promise`
This commit is contained in:
Alex Crichton 2018-10-10 16:52:57 -07:00 committed by GitHub
commit e0b73abc7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4308,6 +4308,7 @@ extern "C" {
/// ///
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
#[wasm_bindgen(extends = Object)] #[wasm_bindgen(extends = Object)]
#[derive(Clone, Debug)]
pub type Promise; pub type Promise;
/// Creates a new `Promise` with the provided executor `cb` /// Creates a new `Promise` with the provided executor `cb`