mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d
This commit is contained in:
parent
3f07cfec7c
commit
578498ba24
4001 changed files with 159517 additions and 30260 deletions
12
tests/wpt/web-platform-tests/wasm/resources/load_wasm.js
Normal file
12
tests/wpt/web-platform-tests/wasm/resources/load_wasm.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
// Copyright 2016 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
function createWasmModule() {
|
||||
return fetch('incrementer.wasm')
|
||||
.then(response => {
|
||||
if (!response.ok) throw new Error(response.statusText);
|
||||
return response.arrayBuffer();
|
||||
})
|
||||
.then(WebAssembly.compile);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue