Add Value::Class, Kal::Class

This commit is contained in:
Andrew Morris
2023-07-25 10:20:48 +10:00
parent b10861389a
commit ed0d2665fd
8 changed files with 70 additions and 3 deletions

View File

@@ -87,6 +87,11 @@ where
Object(object) => {
self.object(owner, object);
}
Class(class) => {
self.value(owner, &mut class.constructor);
self.value(owner, &mut class.prototype);
self.value(owner, &mut class.static_);
}
Pointer(pointer) => {
(self.visitor)(match owner {
Some(owner) => PointerVisitation::Reference(owner, pointer),