diff options
Diffstat (limited to 'vendor/wasm-bindgen/tests/wasm/structural.js')
-rw-r--r-- | vendor/wasm-bindgen/tests/wasm/structural.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen/tests/wasm/structural.js b/vendor/wasm-bindgen/tests/wasm/structural.js new file mode 100644 index 000000000..0261c50e1 --- /dev/null +++ b/vendor/wasm-bindgen/tests/wasm/structural.js @@ -0,0 +1,13 @@ +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); +}; |