js-sys: Add bindings for Symbol.unscopables

This commit is contained in:
Nick Fitzgerald
2018-08-10 13:23:17 -07:00
parent 016449ab3c
commit 7af4e62d99
2 changed files with 13 additions and 0 deletions

View File

@ -99,6 +99,11 @@ fn to_string() {
assert_eq!(gensym("desc".into()).to_string(), "Symbol(desc)");
}
#[wasm_bindgen_test]
fn unscopables() {
assert_eq!(Symbol::unscopables().to_string(), "Symbol(Symbol.unscopables)");
}
#[wasm_bindgen_test]
fn value_of() {
let a = Symbol::for_("foo");