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 7function Foo() { } 8 9assertThrows(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)); }) 19