js-sys 0.2.7

Bindings for all JS global objects and functions in all JS environments like Node.js and browsers, built on `#[wasm_bindgen]` using the `wasm-bindgen` crate.
1
2
3
4
5
6
7
8
9
10
11
const symbol_key = Symbol();

exports.map_with_symbol_key = function() {
  return { [symbol_key]: 42 };
};
exports.symbol_key = function() {
  return symbol_key;
};

exports.Foo = class {};
exports.Bar = class {};