Skip to content

Convert checked-dynamic expected errors in assert.throws and assert.match - #2066

Merged
ctate merged 1 commit into
mainfrom
ctate/convert-checked-dynamic-b56c31
Oct 24, 2026
Merged

ctate merged 1 commit into
mainfrom
ctate/convert-checked-dynamic-b56c31

Conversation

@ctate

@ctate ctate commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator
  • An expected regex or string read from a JavaScript object literal's field compiled to an internal compiler error in assert.throws, and was refused by assert.match and the expected-object form. It now converts to the regex or string its type names.
  • Corpus 8160 against Node 24.

…atch

An expected regex or string read from a JavaScript object literal's
field is a checked-dynamic value while its checker type is RegExp or
string. assert.throws chose its regex comparison from the checker type
and passed the value unconverted, an internal compiler error, and
assert.match and the expected-object form refused it. Such a value now
converts to the regex or string its type names.
@vercel

vercel Bot commented Oct 24, 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 Oct 24, 2026 2:12am UTC

@ctate
ctate merged commit 1df99a8 into main Oct 24, 2026
66 checks passed
@ctate
ctate deleted the ctate/convert-checked-dynamic-b56c31 branch October 24, 2026 02:41

This branch was successfully deployed

1 active deployment
Preview — 10e3476a Deployed Oct 24, 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