Skip to content

console: lower the whole Console prototype with per-instance state - #3598

Open
ctate wants to merge 5 commits into
mainfrom
ctate/console-lower-whole-afed1f
Open

ctate wants to merge 5 commits into
mainfrom
ctate/console-lower-whole-afed1f

Conversation

@ctate

@ctate ctate commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator
  • A Console value now lowers all of Node's prototype: per-instance counters, timers and group indentation, count, countReset, time, timeEnd, timeLog, group, groupCollapsed, groupEnd, dir, dirxml, table, assert, clear and trace, with Node's label lookups, groupIndentation validation, indented writes, table layout, assert prefixes and terminal check; profile, profileEnd, timeStamp, colorMode and inspectOptions remain refused.
  • The global console's counters, timers and groups move to per-instance state and its direct builtins share the instance implementation, with no change to console.log's hot path.
  • Cover it differentially (tests/corpus/console-instance-state.ts, a diagnostics fixture for the refusals, instance trace tests in tests/harness/console-trace.test.ts) and record the broadened Class: Console claim in the compatibility ledger and the limitations page.

@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scriptc Ready Ready Preview, v0 Nov 12, 2026 10:59pm UTC

@vercel-internal-security-reviewer

Copy link
Copy Markdown

Security review details

This branch was successfully deployed

1 active deployment
Preview — 0a7f2f47 Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant