From 2f97fd0f3ede766da6119c73728086bb0f304878 Mon Sep 17 00:00:00 2001 From: benStre Date: Thu, 1 Feb 2024 13:29:08 +0100 Subject: [PATCH] fix pointer property capture --- runtime/pointers.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) {