links-lang / links

Links: Linking Theory to Practice for the Web
http://www.links-lang.org
Other
318 stars 42 forks source link

Fix regression in compilation of effect handlers to JavaScript. #1160

Closed dhil closed 1 year ago

dhil commented 1 year ago

The refactoring of the JavaScript compiler earlier this year apparently introduced a regression in the compilation of effect handlers. This regression manifests computation pattern matching, where the payload of any matched operation was not properly extracted.

This patch also brings examples/handlers/{racing-lines,sierpinski-triangle}.links up to date with the new JavaScript runtime API, meaning these examples now runs correctly again.