PlutoLang / Pluto

A superset of Lua 5.4 with a focus on general-purpose programming.
https://pluto-lang.org/docs/Introduction
MIT License
337 stars 20 forks source link

Fix assertion failures in plutoc #854

Closed XmiliaH closed 1 month ago

XmiliaH commented 1 month ago

The used macros check that the opcode is correct for them to be used. To remove the assertion failure only use the macros if the opcode is of the expected type.

Sainan commented 1 month ago

This seems to be an issue that is present even in the upstream luac; I'd appreciate if the fix were submitted there, and then we can downstream it whenever the next Lua distribution drops (given that luac is not maintained on a public Git repo).

XmiliaH commented 1 month ago

Oh, yes, I will bring it up in the mailing list.