Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: test/mjsunit/wasm/verify-module-basic-errors.js

Issue 1770383002: [wasm] Rename _WASMEXP_ object to Wasm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/mjsunit/wasm/verify-function-simple.js ('k') | test/mjsunit/wasm/wasm-module-builder.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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() { _WASMEXP_.verifyModule(); }) 9 assertThrows(function() { Wasm.verifyModule(); })
10 assertThrows(function() { _WASMEXP_.verifyModule(0); }) 10 assertThrows(function() { Wasm.verifyModule(0); })
11 assertThrows(function() { _WASMEXP_.verifyModule("s"); }) 11 assertThrows(function() { Wasm.verifyModule("s"); })
12 assertThrows(function() { _WASMEXP_.verifyModule(undefined); }) 12 assertThrows(function() { Wasm.verifyModule(undefined); })
13 assertThrows(function() { _WASMEXP_.verifyModule(1.1); }) 13 assertThrows(function() { Wasm.verifyModule(1.1); })
14 assertThrows(function() { _WASMEXP_.verifyModule(1/0); }) 14 assertThrows(function() { Wasm.verifyModule(1/0); })
15 assertThrows(function() { _WASMEXP_.verifyModule(null); }) 15 assertThrows(function() { Wasm.verifyModule(null); })
16 assertThrows(function() { _WASMEXP_.verifyModule(new Foo()); }) 16 assertThrows(function() { Wasm.verifyModule(new Foo()); })
17 assertThrows(function() { _WASMEXP_.verifyModule(new ArrayBuffer(0)); }) 17 assertThrows(function() { Wasm.verifyModule(new ArrayBuffer(0)); })
18 assertThrows(function() { _WASMEXP_.verifyModule(new ArrayBuffer(7)); }) 18 assertThrows(function() { Wasm.verifyModule(new ArrayBuffer(7)); })
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/verify-function-simple.js ('k') | test/mjsunit/wasm/wasm-module-builder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698