| 267 | let lastOffset = null; |
| 268 | |
| 269 | const addCurrentBlock = offset => { |
| 270 | currentBlock.dataset.wasmOffset = offset; |
| 271 | |
| 272 | if (offset !== null) { |
| 273 | adjustColorForOffset(currentBlock, offset); |
| 274 | linkElements(currentBlock); |
| 275 | } |
| 276 | |
| 277 | currentBlock.innerText = disasmBuffer.join("\n"); |
| 278 | funcElem.appendChild(currentBlock); |
| 279 | disasmBuffer = []; |
| 280 | }; |
| 281 | |
| 282 | for (const inst of func.instructions) { |
| 283 | if (lastOffset !== inst.wasm_offset) { |
no test coverage detected