Added WeakSet has method

This commit is contained in:
Dimitrii Nemkov
2018-06-27 13:26:53 +05:00
parent a0dda505d9
commit 846e5aaacc
2 changed files with 38 additions and 0 deletions

View File

@ -628,6 +628,12 @@ extern {
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet
#[wasm_bindgen(constructor)]
pub fn new() -> WeakSet;
/// The has() method returns a boolean indicating whether an object exists in a WeakSet or not.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/has
#[wasm_bindgen(method)]
pub fn has(this: &WeakSet, value: Object) -> bool;
}
// JsString