wasm-bindgen/crates/webidl-tests/global.js
2018-09-17 17:36:53 -07:00

9 lines
139 B
JavaScript

const map = {
global_no_args: () => 3,
global_with_args: (a, b) => a + b,
global_attribute: 'x',
};
global.get_global = () => map;