OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --expose-wasm | 5 // Flags: --expose-wasm |
6 | 6 |
7 function Foo() { } | 7 function Foo() { } |
8 | 8 |
9 assertThrows(function() { WASM.verifyModule(); }) | 9 assertThrows(function() { _WASMEXP_.verifyModule(); }) |
10 assertThrows(function() { WASM.verifyModule(0); }) | 10 assertThrows(function() { _WASMEXP_.verifyModule(0); }) |
11 assertThrows(function() { WASM.verifyModule("s"); }) | 11 assertThrows(function() { _WASMEXP_.verifyModule("s"); }) |
12 assertThrows(function() { WASM.verifyModule(undefined); }) | 12 assertThrows(function() { _WASMEXP_.verifyModule(undefined); }) |
13 assertThrows(function() { WASM.verifyModule(1.1); }) | 13 assertThrows(function() { _WASMEXP_.verifyModule(1.1); }) |
14 assertThrows(function() { WASM.verifyModule(1/0); }) | 14 assertThrows(function() { _WASMEXP_.verifyModule(1/0); }) |
15 assertThrows(function() { WASM.verifyModule(null); }) | 15 assertThrows(function() { _WASMEXP_.verifyModule(null); }) |
16 assertThrows(function() { WASM.verifyModule(new Foo()); }) | 16 assertThrows(function() { _WASMEXP_.verifyModule(new Foo()); }) |
17 assertThrows(function() { WASM.verifyModule(new ArrayBuffer(0)); }) | 17 assertThrows(function() { _WASMEXP_.verifyModule(new ArrayBuffer(0)); }) |
18 assertThrows(function() { WASM.verifyModule(new ArrayBuffer(7)); }) | 18 assertThrows(function() { _WASMEXP_.verifyModule(new ArrayBuffer(7)); }) |
OLD | NEW |