[watchOS] Quickboard UI for focused select elements should not allow the user to...
[WebKit-https.git] / JSTests / wasm / js-api / export-void-is-undef.js
1 import * as assert from '../assert.js';
2 import Builder from '../Builder.js';
3
4 let builder = (new Builder())
5     .Type().End()
6     .Function().End()
7     .Export()
8         .Function("func")
9     .End()
10     .Code()
11     .Function("func", { params: [] })
12         .Return()
13     .End()
14 .End();
15 const bin = builder.WebAssembly().get();
16 const module = new WebAssembly.Module(bin);
17 const instance = new WebAssembly.Instance(module);
18
19 assert.isUndef(instance.exports.func());