summaryrefslogtreecommitdiff
path: root/deps/v8/test/inspector/debugger/wasm-gc-breakpoints.js
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2022-04-12 11:10:15 +0200
committerMichaël Zasso <targos@protonmail.com>2022-04-12 22:08:39 +0200
commitfd4f80ce54d7f7b7503e0999f6a9d293d493846d (patch)
tree00fba34b8aabeb481c7128fccee635719ee44a3b /deps/v8/test/inspector/debugger/wasm-gc-breakpoints.js
parent73d53fe9f56d7ce5de4b9c9ad5257dc601bbce14 (diff)
downloadnode-new-fd4f80ce54d7f7b7503e0999f6a9d293d493846d.tar.gz
deps: update V8 to 10.1.124.6
PR-URL: https://github.com/nodejs/node/pull/42657 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'deps/v8/test/inspector/debugger/wasm-gc-breakpoints.js')
-rw-r--r--deps/v8/test/inspector/debugger/wasm-gc-breakpoints.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/deps/v8/test/inspector/debugger/wasm-gc-breakpoints.js b/deps/v8/test/inspector/debugger/wasm-gc-breakpoints.js
index 4306e20ec5..724e86080a 100644
--- a/deps/v8/test/inspector/debugger/wasm-gc-breakpoints.js
+++ b/deps/v8/test/inspector/debugger/wasm-gc-breakpoints.js
@@ -14,8 +14,10 @@ const module_bytes = [
0x00, 0x61, 0x73, 0x6d, 1, 0, 0, 0, // wasm magic
0x01, // type section
- 0x16, // section length
- 0x04, // number of types
+ 0x18, // section length
+ 0x01, // number of type section entries
+ 0x4f, // recursive type group
+ 0x04, // number of types in the recursive group
// type 0: struct $StrA (field ($byte i8) ($word i16) ($pointer (ref $StrB)))
0x5f, // struct
0x03, // field count
@@ -172,7 +174,7 @@ Protocol.Debugger.onPaused(async msg => {
var lineNumber = frame.location.lineNumber;
var columnNumber = frame.location.columnNumber;
InspectorTest.log(`at ${functionName} (${lineNumber}:${columnNumber}):`);
- if (!/^wasm/.test(frame.url)) {
+ if (!/^wasm/.test(session.getCallFrameUrl(frame))) {
InspectorTest.log(' -- skipped');
continue;
}
@@ -219,7 +221,7 @@ InspectorTest.runAsyncTestSuite([
// Ignore javascript and full module wasm script, get scripts for functions.
const [, {params: wasm_script}] =
await Protocol.Debugger.onceScriptParsed(2);
- let offset = 107; // "local.set $varC" at the end.
+ let offset = 109; // "local.set $varC" at the end.
await setBreakpoint(offset, wasm_script.scriptId, wasm_script.url);
InspectorTest.log('Calling main()');
await WasmInspectorTest.evalWithUrl('instance.exports.main()', 'runWasm');