gecko-dev/testing/web-platform/tests/wasm/resources/load_wasm.js
moz-wptsync-bot abe36a3570 Bug 1491890 [wpt PR 13032] - Improve the wasm idlharness test., a=testonly
Automatic update from web-platform-testsIdlHarness: Extract code that checks for interface objects on self.

--
IdlHarness: Support LegacyNamespace in interface object checks.

--
IdlHarness: Support LegacyNamespace in class string checks.

--
Fix some bugs in wasm/idlharness.any.js.

--
Move wasm/idlharness.any.js to the jsapi subdirectory.

It only tests the IDL from the jsapi specification.

--

wpt-commits: df681aeacb197d9690fff1160e8d6362fd872000, 10c3854cbb09b63f0af8a6624dd7e87edba031ff, e77d06135f5dc72398d0a562ce53da90ad6a0968, ebefd2d309525024a8a57f435aef5ee683846013, a69af5481cdd976c9696f97d9c6547ac87ba83d0
wpt-pr: 13032
2018-10-17 15:44:42 +01:00

12 lines
427 B
JavaScript

// 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('/wasm/incrementer.wasm')
.then(response => {
if (!response.ok) throw new Error(response.statusText);
return response.arrayBuffer();
})
.then(WebAssembly.compile);
}