Port Map tests to wasm

This commit is contained in:
Alex Crichton
2018-07-20 13:46:22 -07:00
parent f3e34d854d
commit 2c9a606c3d
5 changed files with 90 additions and 260 deletions

View File

@ -869,7 +869,7 @@ extern {
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete
#[wasm_bindgen(method)]
pub fn delete(this: &Map, key: &str) -> bool;
pub fn delete(this: &Map, key: &JsValue) -> bool;
/// The forEach() method executes a provided function once per each
/// key/value pair in the Map object, in insertion order.