diff options
Diffstat (limited to 'deps/v8/test/inspector/protocol-test.js')
-rw-r--r-- | deps/v8/test/inspector/protocol-test.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/v8/test/inspector/protocol-test.js b/deps/v8/test/inspector/protocol-test.js index 71e32f2f4e..3b514ab538 100644 --- a/deps/v8/test/inspector/protocol-test.js +++ b/deps/v8/test/inspector/protocol-test.js @@ -287,7 +287,9 @@ InspectorTest.Session = class { if (location.lineNumber != 0) { InspectorTest.log('Unexpected wasm line number: ' + location.lineNumber); } - InspectorTest.log(`Script ${script.url} byte offset ${location.columnNumber}: Wasm opcode 0x${script.bytecode[location.columnNumber].toString(16)}`); + let wasm_opcode = script.bytecode[location.columnNumber].toString(16); + if (wasm_opcode.length % 2) wasm_opcode = '0' + wasm_opcode; + InspectorTest.log(`Script ${script.url} byte offset ${location.columnNumber}: Wasm opcode 0x${wasm_opcode}`); } else { var lines = script.scriptSource.split('\n'); var line = lines[location.lineNumber]; |