instance_prototype -> prototype

This commit is contained in:
Andrew Morris
2023-06-23 09:06:01 +10:00
parent 5567ebcef0
commit a00a161973
6 changed files with 6 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ impl BuiltinObject for ErrorBuiltin {
fn bo_as_class_data() -> Option<Rc<VsClass>> {
Some(Rc::new(VsClass {
constructor: SET_MESSAGE.to_val(),
instance_prototype: make_error_prototype(),
prototype: make_error_prototype(),
}))
}
}

View File

@@ -32,7 +32,7 @@ impl BuiltinObject for RangeErrorBuiltin {
fn bo_as_class_data() -> Option<Rc<VsClass>> {
Some(Rc::new(VsClass {
constructor: Val::Static(&SET_MESSAGE),
instance_prototype: make_range_error_prototype(),
prototype: make_range_error_prototype(),
}))
}
}

View File

@@ -40,7 +40,7 @@ impl BuiltinObject for TypeErrorBuiltin {
fn bo_as_class_data() -> Option<Rc<VsClass>> {
Some(Rc::new(VsClass {
constructor: Val::Static(&SET_MESSAGE),
instance_prototype: make_type_error_prototype(),
prototype: make_type_error_prototype(),
}))
}
}