feat(Map): add Map.new

This commit is contained in:
Jannik Keye
2018-06-28 21:55:10 +02:00
parent 07e61e1175
commit 27ee57175a
2 changed files with 35 additions and 0 deletions

View File

@ -331,6 +331,13 @@ extern {
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/has
#[wasm_bindgen(method)]
pub fn has(this: &Map, key: &JsValue) -> bool;
/// The Map object holds key-value pairs. Any value (both objects and
/// primitive values) maybe used as either a key or a value.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
#[wasm_bindgen(constructor)]
pub fn new() -> Map;
}
// Math