mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
instance_prototype -> prototype
This commit is contained in:
@@ -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(),
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user