Skip to content

chore: move stackTrace helpers from isomorphic to utils - #41591

Merged
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:move-stacktrace-to-utils
Jul 2, 2026
Merged

chore: move stackTrace helpers from isomorphic to utils#41591
dgozman merged 1 commit into
microsoft:mainfrom
dgozman:move-stacktrace-to-utils

Conversation

@dgozman

@dgozman dgozman commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Move packages/isomorphic/stackTrace.ts to packages/utils and use path.sep directly instead of threading a pathSeparator argument through the API.
  • Compute PWDEBUGIMPL lazily inside stackTrace.ts instead of pushing it in via setShowInternalStackFrames().
  • Source the StackFrame type from @trace/trace so browser/isomorphic code no longer depends on the node-only utils module.

@dgozman
dgozman requested a review from Skn0tt July 2, 2026 11:18
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread packages/utils/stackTrace.ts Outdated
let _coreDir: string | undefined;
let _boxedStackPrefixes: string[] = [];
let _showInternalStackFrames = false;
let _showInternalStackFrames: boolean | undefined;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be not needed anymore - except for if we expect PWDEBUGIMPL being mutated during the process lifetime. But I don't see that in the codebase, so it's probably fine to remove.

- Move packages/isomorphic/stackTrace.ts to packages/utils and use
  path.sep directly instead of threading a pathSeparator argument.
- Compute PWDEBUGIMPL lazily inside stackTrace.ts instead of pushing
  it in via setShowInternalStackFrames().
- Source the StackFrame type from @trace/trace so browser/isomorphic
  code no longer depends on the node-only utils module.
@dgozman
dgozman force-pushed the move-stacktrace-to-utils branch from 6c18532 to b7f6265 Compare July 2, 2026 13:36
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

2 failed
❌ [chromium] › mcp/annotate.spec.ts:110 › should abort annotation when last screenshot is removed @mcp-macos-latest-chromium
❌ [chromium] › mcp/cli-killall.spec.ts:42 › kill-all kills filtered dashboard pid @mcp-ubuntu-latest-chromium

7459 passed, 1132 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 flaky ⚠️ [chromium-library] › library/popup.spec.ts:260 › should not throw when click closes popup `@realtime-time-library-chromium-linux`

49488 passed, 1165 skipped


Merge workflow run.

@dgozman
dgozman merged commit 4902912 into microsoft:main Jul 2, 2026
48 of 52 checks passed
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.

2 participants