(expected, memory)
| 6 | d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js'); |
| 7 | |
| 8 | function assertMemoryEquals(expected, memory) { |
| 9 | assertInstanceof(memory, WebAssembly.Memory); |
| 10 | assertInstanceof(expected, Uint8Array); |
| 11 | const buf = new Uint8Array(memory.buffer); |
| 12 | // For better output, check the first 50 bytes separately first. |
| 13 | assertEquals(expected.slice(0, 50), buf.slice(0, 50)); |
| 14 | // Now also check the full memory content. |
| 15 | assertEquals(expected, buf); |
| 16 | } |
| 17 | |
| 18 | (function testBasicMultiMemory() { |
| 19 | print(arguments.callee.name); |
no test coverage detected