mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-24 06:33:33 +03:00
9 lines
139 B
JavaScript
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;
|
|
|