require_mutable_this

This commit is contained in:
Andrew Morris
2023-04-05 10:15:19 +10:00
parent 9bad858f7c
commit dc685f5892
16 changed files with 121 additions and 21 deletions

View File

@@ -50,6 +50,7 @@ pub enum InstructionByte {
SetCatch = 0x2f,
UnsetCatch = 0x30,
ConstSubCall = 0x31,
RequireMutableThis = 0x32,
}
impl InstructionByte {
@@ -107,6 +108,7 @@ impl InstructionByte {
0x2f => SetCatch,
0x30 => UnsetCatch,
0x31 => ConstSubCall,
0x32 => RequireMutableThis,
_ => panic!("Unrecognized instruction: {}", byte),
};