Skip to content

feat: make nothrow() toggleable#1066

Merged
antongolub merged 1 commit intogoogle:mainfrom
antongolub:nothrow-toggle-2
Jan 7, 2025
Merged

feat: make nothrow() toggleable#1066
antongolub merged 1 commit intogoogle:mainfrom
antongolub:nothrow-toggle-2

Conversation

@antongolub
Copy link
Copy Markdown
Collaborator

@antongolub antongolub commented Jan 7, 2025

closes #1029

try {
  const p = $`exit 42`.nothrow()
  await p.nothrow(false)
} catch ({ exitCode }) {
  assert.equal(exitCode, 42)
}
  • Tests pass
  • Appropriate changes to README are included in PR

@antongolub antongolub merged commit 73347ac into google:main Jan 7, 2025
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.

feat: make nothrow toggleable

1 participant