You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ndir is null, this will end up setting dir to SOUTH. Our peephole optimizations incorrectly assume this will set dir to null and that we can use the value on the top of the stack instead of re-getting the dir value. This ends up doing switch(null) instead of switch(SOUTH).
The text was updated successfully, but these errors were encountered:
Some built-in vars have special behavior that will coerce invalid values to valid ones. For example, /tg/ has this code:
If
ndir
is null, this will end up settingdir
to SOUTH. Our peephole optimizations incorrectly assume this will setdir
to null and that we can use the value on the top of the stack instead of re-getting thedir
value. This ends up doingswitch(null)
instead ofswitch(SOUTH)
.The text was updated successfully, but these errors were encountered: