Skip to content

feat: let $ presets be composable#883

Merged
antonmedv merged 1 commit intogoogle:mainfrom
antongolub:composit-opts
Sep 5, 2024
Merged

feat: let $ presets be composable#883
antonmedv merged 1 commit intogoogle:mainfrom
antongolub:composit-opts

Conversation

@antongolub
Copy link
Copy Markdown
Collaborator

Fixes #881

const $$ = $({ nothrow: true })
assert.equal((await $$`exit 1`).exitCode, 1)

const $$$ = $$({ sync: true }) // Both {nothrow: true, sync: true} are applied
assert.equal($$$`exit 2`.exitCode, 2)
  • Tests pass

@antongolub antongolub requested a review from antonmedv September 5, 2024 13:02
@antonmedv antonmedv merged commit 5d2ad78 into google:main Sep 5, 2024
@boneskull
Copy link
Copy Markdown

Slick 😄

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.

leaks signal listeners in Node.js

3 participants