GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Describe scope bindings CDP gives no value for as unavailable by Andarist · Pull Request #204 · replayio/node

Conversation

@Andarist

@Andarist Andarist commented Oct 28, 2026

Copy link
Copy Markdown
Member

Runtime.getProperties omits the value of a scope binding the inspector can't describe. An async function whose optimized code is deoptimized while it waits at an await resumes in the interpreter with V8's stale_register marker in registers that were dead at that await, and debug-scopes copies that marker into the scope object. createProtocolScope passed the missing value to remoteObjectToProtocolValue, which threw, so Pause.getScope returned no scope and the linker's GetScopeJSON assertion failed (Pause/GetScopeJSON crash bucket). Such bindings are now reported as unavailable values.

Covered by the node-recording case
evaluate/dead-binding-after-deoptimized-await in replayio/backend.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Andarist
Describe scope bindings CDP gives no value for as unavailable
d2b9668
Runtime.getProperties omits the value of a scope binding the inspector
can't describe. An async function whose optimized code is deoptimized
while it waits at an await resumes in the interpreter with V8's
stale_register marker in registers that were dead at that await, and
debug-scopes copies that marker into the scope object. createProtocolScope
passed the missing value to remoteObjectToProtocolValue, which threw, so
Pause.getScope returned no scope and the linker's GetScopeJSON assertion
failed (Pause/GetScopeJSON crash bucket). Such bindings are now reported as
unavailable values.

Covered by the node-recording case
evaluate/dead-binding-after-deoptimized-await in replayio/backend.
@Andarist
Andarist merged commit 211934c into master Oct 28, 2026
2 of 3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Andarist
Andarist deleted the andarist/getscope-unavailable-binding branch October 28, 2026 22:08
bhackett1024 added a commit that referenced this pull request Nov 5, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
c681c18
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @hbenl
@Andarist @loganfsmyth @claude
Add JavaScript recording/replay runtime
f4bb115
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @hbenl
@Andarist @loganfsmyth @claude
Add JavaScript recording/replay runtime
be50d53
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @hbenl
@Andarist @loganfsmyth @claude
Add JavaScript recording/replay runtime
a44753c
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
78d4330
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
7251503
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
b41a470
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 6, 2026
@bhackett1024 @hbenl
@Andarist @loganfsmyth @claude
Add JavaScript recording/replay runtime
3b48e79
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
c7b55b9
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
667b9fd
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
735344d
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
4b1e840
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
ecbb2b1
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
afa6257
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
6700f65
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
6482fd0
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
015fdc0
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
fdd7dab
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
5b80d4e
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
fab31c1
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
34385ac
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
9b25542
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
ce48482
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
f368256
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
cd22b89
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
bd575f1
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 10, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
3ae9861
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist pushed a commit that referenced this pull request Nov 11, 2026
@bhackett1024 @Andarist
Add JavaScript recording/replay runtime
0c01cab
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 11, 2026
@bhackett1024 @hbenl
@Andarist @loganfsmyth @claude
Add JavaScript recording/replay runtime
06e8210
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 11, 2026
@bhackett1024 @hbenl
@Andarist @loganfsmyth @claude
Add JavaScript recording/replay runtime
f80a1ca
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Andarist added a commit that referenced this pull request Nov 12, 2026
@bhackett1024 @hbenl
@Andarist @loganfsmyth @claude
Add JavaScript recording/replay runtime
46e9588
Add the lib/internal/recordreplay/ module with main entry point,
message handling, object inspection, console preview generation,
source map support, and utilities for the recording/replay system.
Add the internal/recordreplay modules to the expected list in
test-bootstrap-modules.

Report a console message's level from the type of its
Runtime.consoleAPICalled event ("log", "warning", "error", ...),
mapped the way Chromium's replay command handlers do, since the event
carries no level field and every message was reported as "info".

Describe a scope binding CDP gives no value for as an unavailable
value: Runtime.getProperties omits the value of a binding the
inspector can't describe, such as a register that was dead at an await
and holds V8's stale_register marker after the function's optimized
code was deoptimized, and passing the missing value on threw, so
Pause.getScope returned no scope at all.

Record next to the session setup why Replay's session is installed on
both sides here, unlike Chromium, which installs it only when
replaying: connecting it makes the inspector agent active, so console
calls run V8's console method, whose message text converts Dates,
Errors, functions and RegExps with ToString, i.e. user JS, and that
has to stay the same when recording and replaying.

Rebase note: this is new code under lib/internal/recordreplay/, so
conflicts should only come from the list in test-bootstrap-modules
(the bootstrap hook that loads it is a separate commit). The commands
implemented here must keep matching the driver's expectations and the
process.recordreplay methods they call, and anything this code runs
that touches the program's own objects must stay inside a pause, where
the replay has diverged, rather than running while Replay's session
describes a value.

Includes later changes from #152, #204 and #224.

Co-authored-by: Holger Benl <[email protected]>
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Logan Smyth <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Andarist
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.