Simplify builtins

This commit is contained in:
Andrew Morris
2023-05-29 14:46:24 +10:00
parent 3d6c8fda2d
commit 702506d315
12 changed files with 24 additions and 37 deletions

View File

@@ -143,7 +143,7 @@ impl BytecodeDecoder {
Val::Void => Val::Undefined,
val => val,
},
BytecodeType::Builtin => Val::Static(BUILTIN_VALS[self.decode_varsize_uint()]),
BytecodeType::Builtin => BUILTIN_VALS[self.decode_varsize_uint()](),
BytecodeType::Class => VsClass {
constructor: self.decode_val(registers),
instance_prototype: self.decode_val(registers),