blob: 29ef2aa61166085adb5b30877e9c811d4ca006c9 [file] [log] [blame]
Ben Murdoch4a90d5f2016-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
Ben Murdochda12d292016-06-02 14:46:10 +01009assertThrows(function() { Wasm.verifyModule(); })
10assertThrows(function() { Wasm.verifyModule(0); })
11assertThrows(function() { Wasm.verifyModule("s"); })
12assertThrows(function() { Wasm.verifyModule(undefined); })
13assertThrows(function() { Wasm.verifyModule(1.1); })
14assertThrows(function() { Wasm.verifyModule(1/0); })
15assertThrows(function() { Wasm.verifyModule(null); })
16assertThrows(function() { Wasm.verifyModule(new Foo()); })
17assertThrows(function() { Wasm.verifyModule(new ArrayBuffer(0)); })
18assertThrows(function() { Wasm.verifyModule(new ArrayBuffer(7)); })