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 — Report console message levels using the appropriate `Runtime.consoleAPICalled` type by Andarist · Pull Request #152 · replayio/node

Conversation

@Andarist

@Andarist Andarist commented Sep 23, 2026

Copy link
Copy Markdown
Member

Target_getCurrentMessageContents read the message level from gLastConsoleAPICall.level, but Runtime.consoleAPICalled has no level field, only type ("log", "warning", "error", ...). Every console message was reported as "info", including console.warn and console.error.

The fix is to just map the type to the level the same way Chromium's replay command handlers do: https://github.com/replayio/chromium/blob/afd3932fc1e51dc821a8fbddf70f847919c94d91/replay-assets/replay_command_handlers.js#L466

Sorry, something went wrong.

Uh oh!

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

All reactions
@Andarist
Andarist requested review from Domiii, bhackett1024 and markerikson September 23, 2026 08:17
@Andarist
Report console message levels from the Runtime.consoleAPICalled type
0c1676c
Target_getCurrentMessageContents read the message level from
gLastConsoleAPICall.level, but Runtime.consoleAPICalled has no level
field, only type ("log", "warning", "error", ...). Every console message
was reported as "info", including console.warn and console.error.

Map the type to the level the same way Chromium's replay command
handlers do (cdpToRrpConsoleLevels in replay_command_handlers.js).

Test: backend test/node-recording/tests/console/message-levels
@Andarist
Andarist force-pushed the claude/console-message-level branch from 8ba35fc to 0c1676c Compare September 23, 2026 08:43
markerikson
markerikson approved these changes Sep 23, 2026
View reviewed changes
@Andarist
Andarist merged commit a7d6a4a into master Sep 23, 2026
3 checks passed

Uh oh!

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

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

@markerikson markerikson markerikson approved these changes
@Domiii Domiii Awaiting requested review from Domiii
@bhackett1024 bhackett1024 Awaiting requested review from bhackett1024

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.

2 participants

@Andarist @markerikson
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.