Skip to content

Fix Parmatch crash on empty record head patterns#8246

Open
fhammerschmidt wants to merge 1 commit intorescript-lang:masterfrom
fhammerschmidt:fix-parmatch-dict-error
Open

Fix Parmatch crash on empty record head patterns#8246
fhammerschmidt wants to merge 1 commit intorescript-lang:masterfrom
fhammerschmidt:fix-parmatch-dict-error

Conversation

@fhammerschmidt
Copy link
Member

@fhammerschmidt fhammerschmidt commented Feb 13, 2026

@fhammerschmidt fhammerschmidt force-pushed the fix-parmatch-dict-error branch 2 times, most recently from 90d6464 to f7af484 Compare February 13, 2026 23:20
@fhammerschmidt fhammerschmidt force-pushed the fix-parmatch-dict-error branch from f7af484 to 4103f47 Compare February 13, 2026 23:26
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 13, 2026

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@8246

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@8246

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@8246

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@8246

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@8246

@rescript/runtime

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/runtime@8246

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@8246

commit: 4103f47

Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

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

Fix looks good.
A dedicated build test seems a little more overkill from something we just want to check compiles without crashing.
Easier to just add a 2-liner to tests/src

body: Json(JSON.Object(dict{
"request": JSON.String("READ"),
"payload": JSON.Object(dict{
"list-a": JSON.Object(dict{"last_known_events": JSON.Object(dict{})}),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: the empty dict is a little buried in this example.

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