| OLD | NEW |
| 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 |
| 6 |
| 5 load("test/mjsunit/wasm/wasm-constants.js"); | 7 load("test/mjsunit/wasm/wasm-constants.js"); |
| 6 | 8 |
| 7 try { | 9 try { |
| 8 var data = bytes( | 10 var data = bytes( |
| 9 0, kAstStmt, // signature | 11 0, kAstStmt, // signature |
| 10 3, 0, // local int32 count | 12 3, 0, // local int32 count |
| 11 4, 0, // local int64 count | 13 4, 0, // local int64 count |
| 12 5, 0, // local float32 count | 14 5, 0, // local float32 count |
| 13 6, 0, // local float64 count | 15 6, 0, // local float64 count |
| 14 kExprNop // body | 16 kExprNop // body |
| (...skipping 18 matching lines...) Expand all Loading... |
| 33 ); | 35 ); |
| 34 | 36 |
| 35 WASM.verifyFunction(data); | 37 WASM.verifyFunction(data); |
| 36 print("not ok"); | 38 print("not ok"); |
| 37 } catch (e) { | 39 } catch (e) { |
| 38 print("ok: " + e); | 40 print("ok: " + e); |
| 39 threw = true; | 41 threw = true; |
| 40 } | 42 } |
| 41 | 43 |
| 42 assertTrue(threw); | 44 assertTrue(threw); |
| OLD | NEW |