Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/wasm/resources/load_wasm.js

Issue 2405153003: [wasm] support for recompilation if deserialization fails (Closed)
Patch Set: uncompiled->wire Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/wasm/wasm_indexeddb_test.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function createWasmModule() {
6 // the file incrementer.wasm is copied from
7 // //v8/test/mjsunit/wasm. This is because currently we cannot
8 // reference files outside the LayoutTests folder. When wasm format
9 // changes require that file to be updated, there is a test on the
10 // v8 side (same folder), ensure-wasm-binaries-up-to-date.js, which
11 // fails and will require incrementer.wasm to be updated on that side.
12 return fetch('incrementer.wasm')
13 .then(response => {
14 if (!response.ok) throw new Error(response.statusText);
15 return response.arrayBuffer();
16 })
17 .then(data => {
18 var mod = new WebAssembly.Module(data);
19 return mod;
20 });
21 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/wasm/wasm_indexeddb_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698