Set undefined operations instead of nil

This commit is contained in:
Austin Roberts 2023-10-23 14:31:50 -05:00
parent 3184027a2c
commit 0bb80e6be1

View File

@ -24,7 +24,7 @@ func PluginOpCodeSelect(pl *plugins.PluginLoader, jt *JumpTable) *JumpTable {
jt = copyJumpTable(jt)
}
for _, idx := range opCodes {
(*jt)[idx] = nil
(*jt)[idx] = &operation{execute: opUndefined, maxStack: maxStack(0, 0)}
}
return jt
}