mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 04:23:12 +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;
|
|
|