fixed a test case regarding self and super as a return value
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-02-08 01:39:21 +09:00
parent ded917711e
commit 00438200f9
2 changed files with 36 additions and 6 deletions

View File

@ -4430,6 +4430,8 @@ redo:
case HCL_CNODE_SELF:
case HCL_CNODE_SUPER:
/* if super is not sent a message, super represents the receiver
* just like self does */
if (emit_byte_instruction(hcl, HCL_CODE_PUSH_RECEIVER, HCL_CNODE_GET_LOC(oprnd)) <= -1) return -1;
goto done;