mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-23 18:12:38 +03:00
14 lines
266 B
JavaScript
14 lines
266 B
JavaScript
const wasm = require('wasm-bindgen-test.js');
|
|
const assert = require('assert');
|
|
|
|
exports.js_works = () => {
|
|
let called = false;
|
|
wasm.run({
|
|
bar() {
|
|
called = true;
|
|
},
|
|
baz: 1,
|
|
});
|
|
assert.strictEqual(called, true);
|
|
};
|