diff --git a/runtime/pointers.ts b/runtime/pointers.ts index d1c9b4df..5ac8c424 100644 --- a/runtime/pointers.ts +++ b/runtime/pointers.ts @@ -622,9 +622,10 @@ export class PointerProperty extends Ref { // get current pointer property public override get val():T { - // this.handleBeforePrimitiveValueGet(); if (this.lazy_pointer) return undefined as T - + + // capture property access in parent pointer + this.pointer!.handleBeforeNonReferencableGet(this.key); const val = this.pointer!.getProperty(this.key, this.#leak_js_properties); if (val === NOT_EXISTING) {