mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Add static_ field
This commit is contained in:
@@ -42,6 +42,7 @@ impl BuiltinObject for ErrorBuiltin {
|
||||
Some(Rc::new(VsClass {
|
||||
constructor: SET_MESSAGE.to_val(),
|
||||
prototype: make_error_prototype(),
|
||||
static_: VsObject::default().to_val(),
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ impl BuiltinObject for RangeErrorBuiltin {
|
||||
Some(Rc::new(VsClass {
|
||||
constructor: Val::Static(&SET_MESSAGE),
|
||||
prototype: make_range_error_prototype(),
|
||||
static_: VsObject::default().to_val(),
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ impl BuiltinObject for TypeErrorBuiltin {
|
||||
Some(Rc::new(VsClass {
|
||||
constructor: Val::Static(&SET_MESSAGE),
|
||||
prototype: make_type_error_prototype(),
|
||||
static_: VsObject::default().to_val(),
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user