(offset, bytes)
| 437 | } |
| 438 | } |
| 439 | function checkMemory(offset, bytes) { |
| 440 | let slop = 64; |
| 441 | assertMemoryBytesZero(Math.max(0, offset - slop), offset); |
| 442 | for (let i = 0; i < bytes.length; i++) { |
| 443 | assertEquals(bytes[i], memory[offset + i]); |
| 444 | } |
| 445 | assertMemoryBytesZero(offset + bytes.length, |
| 446 | Math.min(memory.length, |
| 447 | offset + bytes.length + slop)); |
| 448 | } |
| 449 | |
| 450 | for (let str of interestingStrings) { |
| 451 | let wtf8 = encodeWtf8(str); |
no test coverage detected