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

Side by Side Diff: test/mjsunit/wasm/verify-function-basic-errors.js

Issue 2417773004: [wasm] Reduce usage of old Wasm.* API in JS tests. (Closed)
Patch Set: 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
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project 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 // Flags: --expose-wasm
6
7 function Foo() { }
8
9 assertThrows(function() { Wasm.verifyFunction(); })
10 assertThrows(function() { Wasm.verifyFunction(0); })
11 assertThrows(function() { Wasm.verifyFunction("s"); })
12 assertThrows(function() { Wasm.verifyFunction(undefined); })
13 assertThrows(function() { Wasm.verifyFunction(1.1); })
14 assertThrows(function() { Wasm.verifyFunction(1/0); })
15 assertThrows(function() { Wasm.verifyFunction(null); })
16 assertThrows(function() { Wasm.verifyFunction(new Foo()); })
17 assertThrows(function() { Wasm.verifyFunction(new ArrayBuffer(0)); })
18 assertThrows(function() { Wasm.verifyFunction(new ArrayBuffer(140000)); })
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/instantiate-module-basic.js ('k') | test/mjsunit/wasm/verify-function-simple.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698