mirror of
https://github.com/servo/servo.git
synced 2025-10-16 08:20:22 +01:00
Update web-platform-tests to revision 388763aee0d14246a2f8ebb24176424cc1983820
This commit is contained in:
parent
0838d782c6
commit
b24cb329fb
202 changed files with 11044 additions and 1361 deletions
12
tests/wpt/web-platform-tests/wasm/jsapi/functions/helper.js
Normal file
12
tests/wpt/web-platform-tests/wasm/jsapi/functions/helper.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
function call_later(f) {
|
||||
const builder = new WasmModuleBuilder();
|
||||
const functionIndex = builder.addImport("module", "imported", kSig_v_v);
|
||||
builder.addStart(functionIndex);
|
||||
const buffer = builder.toBuffer();
|
||||
|
||||
WebAssembly.instantiate(buffer, {
|
||||
"module": {
|
||||
"imported": f,
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue