mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Merge pull request #15318 from s-hadinger/berry_vm_class_member
Berry supper class in member
This commit is contained in:
commit
692200aea8
@ -875,6 +875,11 @@ newframe: /* a new call frame */
|
|||||||
}
|
}
|
||||||
var_setinstance(&a[1], obj); /* replace superinstance by lowest subinstance */
|
var_setinstance(&a[1], obj); /* replace superinstance by lowest subinstance */
|
||||||
}
|
}
|
||||||
|
} else if (var_isclass(a)) {
|
||||||
|
/* in this case we have a class in a static or non-static member */
|
||||||
|
/* it's always treated like a statif function */
|
||||||
|
a[1] = result;
|
||||||
|
var_settype(a, NOT_METHOD);
|
||||||
} else {
|
} else {
|
||||||
vm_error(vm, "attribute_error",
|
vm_error(vm, "attribute_error",
|
||||||
"class '%s' has no method '%s'",
|
"class '%s' has no method '%s'",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user