Repository navigation
fix(node): make process.stdout.isTTY writable - #26130
Merged
Merged
Conversation
nrako
added a commit
to nrako/deno
that referenced
this pull request
Nov 30, 2025
In Node.js, `tty.ReadStream` sets `isTTY` as a simple instance property (`this.isTTY = true`), making it naturally writable. Deno's polyfill used a getter-only property definition, preventing assignment. Some npm packages need to override `isTTY` at runtime. For example, Playwright's test server sets `process.stdin.isTTY = undefined` to prevent reporters from blocking on user input during UI mode (microsoft/playwright#37867). This aligns stdin with the stdout/stderr fix from denoland#26130, ensuring all stdio streams behave consistently with Node.js. Refs: - https://github.com/nodejs/node/blob/main/lib/tty.js - https://github.com/microsoft/playwright/blob/main/packages/playwright/src/runner/testServer.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
nrako
added a commit
to nrako/deno
that referenced
this pull request
Nov 30, 2025
In Node.js, `tty.ReadStream` sets `isTTY` as a simple instance property (`this.isTTY = true`), making it naturally writable. Deno's polyfill used a getter-only property definition, preventing assignment. Some npm packages need to override `isTTY` at runtime. For example, Playwright's test server sets `process.stdin.isTTY = undefined` to prevent reporters from blocking on user input during UI mode (microsoft/playwright#37867). This aligns stdin with the stdout/stderr fix from denoland#26130, ensuring all stdio streams behave consistently with Node.js. Refs: - https://github.com/nodejs/node/blob/main/lib/tty.js - https://github.com/microsoft/playwright/blob/main/packages/playwright/src/runner/testServer.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
bartlomieju
pushed a commit
that referenced
this pull request
Dec 1, 2025
## Summary In Node.js, `tty.ReadStream` sets `isTTY` as a simple instance property (`this.isTTY = true`), making it naturally writable. Deno's polyfill used a getter-only property definition, preventing assignment. Some npm packages need to override `isTTY` at runtime. For example, Playwright's test server sets `process.stdin.isTTY = undefined` to prevent reporters from blocking on user input during UI mode (microsoft/playwright#37867). This aligns stdin with the stdout/stderr fix from #26130, ensuring all stdio streams behave consistently with Node.js. ## Refs - https://github.com/nodejs/node/blob/6a1a3ba045ad7d8d46ca443c5bb73b172d6828c3/lib/tty.js#L71 - https://github.com/microsoft/playwright/blob/3a5a32d26da3c4da1bd45b71c8b9864e1ea480c9/packages/playwright/src/runner/testServer.ts#L257-L266 Co-authored-by: Claude <noreply@anthropic.com>
bartlomieju
pushed a commit
that referenced
this pull request
Jan 22, 2026
## Summary In Node.js, `tty.ReadStream` sets `isTTY` as a simple instance property (`this.isTTY = true`), making it naturally writable. Deno's polyfill used a getter-only property definition, preventing assignment. Some npm packages need to override `isTTY` at runtime. For example, Playwright's test server sets `process.stdin.isTTY = undefined` to prevent reporters from blocking on user input during UI mode (microsoft/playwright#37867). This aligns stdin with the stdout/stderr fix from #26130, ensuring all stdio streams behave consistently with Node.js. ## Refs - https://github.com/nodejs/node/blob/6a1a3ba045ad7d8d46ca443c5bb73b172d6828c3/lib/tty.js#L71 - https://github.com/microsoft/playwright/blob/3a5a32d26da3c4da1bd45b71c8b9864e1ea480c9/packages/playwright/src/runner/testServer.ts#L257-L266 Co-authored-by: Claude <noreply@anthropic.com>
bartlomieju
pushed a commit
to bartlomieju/deno
that referenced
this pull request
Jan 26, 2026
## Summary In Node.js, `tty.ReadStream` sets `isTTY` as a simple instance property (`this.isTTY = true`), making it naturally writable. Deno's polyfill used a getter-only property definition, preventing assignment. Some npm packages need to override `isTTY` at runtime. For example, Playwright's test server sets `process.stdin.isTTY = undefined` to prevent reporters from blocking on user input during UI mode (microsoft/playwright#37867). This aligns stdin with the stdout/stderr fix from denoland#26130, ensuring all stdio streams behave consistently with Node.js. ## Refs - https://github.com/nodejs/node/blob/6a1a3ba045ad7d8d46ca443c5bb73b172d6828c3/lib/tty.js#L71 - https://github.com/microsoft/playwright/blob/3a5a32d26da3c4da1bd45b71c8b9864e1ea480c9/packages/playwright/src/runner/testServer.ts#L257-L266 Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #26123