mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Add set_catch, unset_catch instructions
This commit is contained in:
@@ -47,6 +47,8 @@ pub enum InstructionByte {
|
||||
Throw = 0x2c,
|
||||
Import = 0x2d,
|
||||
ImportStar = 0x2e,
|
||||
SetCatch = 0x2f,
|
||||
UnsetCatch = 0x30,
|
||||
}
|
||||
|
||||
impl InstructionByte {
|
||||
@@ -101,6 +103,8 @@ impl InstructionByte {
|
||||
0x2c => Throw,
|
||||
0x2d => Import,
|
||||
0x2e => ImportStar,
|
||||
0x2f => SetCatch,
|
||||
0x30 => UnsetCatch,
|
||||
|
||||
_ => panic!("Unrecognized instruction: {}", byte),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user