Classes - Fixed static setters
This commit is contained in:
parent
77d47ef62f
commit
3d55901c51
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ impl PropertyCarrier for ClassRef {
|
||||||
let class = self.borrow();
|
let class = self.borrow();
|
||||||
|
|
||||||
// Check for a property setter.
|
// Check for a property setter.
|
||||||
let mb_key = (ClassMemberKind::Setter, false, name.lexeme.clone());
|
let mb_key = (ClassMemberKind::Setter, true, name.lexeme.clone());
|
||||||
if let Some(setter) = class.members.get(&mb_key) {
|
if let Some(setter) = class.members.get(&mb_key) {
|
||||||
// Bind and execute the property setter
|
// Bind and execute the property setter
|
||||||
let bound_method = bind_method(setter, Value::from(self.clone()));
|
let bound_method = bind_method(setter, Value::from(self.clone()));
|
||||||
|
|
Loading…
Reference in a new issue