OLD | NEW |
| (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)); }) | |
OLD | NEW |