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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/wasm/wasm-limits-worker.js

Issue 2702953002: [wasm] Block compile/instantiate of large array buffers (Closed)
Patch Set: Updated after V8 side landed Created 3 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2017 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 this.importScripts("wasm-constants.js");
6 this.importScripts("wasm-module-builder.js");
7 this.importScripts("wasm-limits-tests-common.js");
8
9 onmessage = function(limit) {
10 var buffer = createTestBuffers(limit).large;
11 var m = undefined;
12 var i = undefined;
13 try {
14 m = new WebAssembly.Module(buffer);
15 i = new WebAssembly.Instance(m);
16 } catch (e) {
17 postMessage(false);
18 }
19 postMessage(m instanceof WebAssembly.Module &&
20 i instanceof WebAssembly.Instance);
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698