Home | History | Annotate | Download | only in wasm
      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.verifyModule(); })
     10 assertThrows(function() { Wasm.verifyModule(0); })
     11 assertThrows(function() { Wasm.verifyModule("s"); })
     12 assertThrows(function() { Wasm.verifyModule(undefined); })
     13 assertThrows(function() { Wasm.verifyModule(1.1); })
     14 assertThrows(function() { Wasm.verifyModule(1/0); })
     15 assertThrows(function() { Wasm.verifyModule(null); })
     16 assertThrows(function() { Wasm.verifyModule(new Foo()); })
     17 assertThrows(function() { Wasm.verifyModule(new ArrayBuffer(0)); })
     18 assertThrows(function() { Wasm.verifyModule(new ArrayBuffer(7)); })
     19