blob: c7383c8327b091141ec9eb1ea33686e71b803592 [file] [log] [blame]
Ben Murdoch014dc512016-03-22 12:00:34 +00001// 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
7function Foo() { }
8
9assertThrows(function() { _WASMEXP_.verifyFunction(); })
10assertThrows(function() { _WASMEXP_.verifyFunction(0); })
11assertThrows(function() { _WASMEXP_.verifyFunction("s"); })
12assertThrows(function() { _WASMEXP_.verifyFunction(undefined); })
13assertThrows(function() { _WASMEXP_.verifyFunction(1.1); })
14assertThrows(function() { _WASMEXP_.verifyFunction(1/0); })
15assertThrows(function() { _WASMEXP_.verifyFunction(null); })
16assertThrows(function() { _WASMEXP_.verifyFunction(new Foo()); })
17assertThrows(function() { _WASMEXP_.verifyFunction(new ArrayBuffer(0)); })
18assertThrows(function() { _WASMEXP_.verifyFunction(new ArrayBuffer(140000)); })