diff --git a/runtime/pointers.ts b/runtime/pointers.ts index 890bee7..b3020b9 100644 --- a/runtime/pointers.ts +++ b/runtime/pointers.ts @@ -2604,7 +2604,7 @@ export class Pointer extends Ref { const value = alreadyProxy ? val : this.addObjProxy((val instanceof UnresolvedValue) ? val[DX_VALUE] : val); // add $, $$ if (!alreadyProxy && typeof value !== "symbol") this.add$Properties(value); - + this.#loaded = true; // this.value exists (must be set to true before the super.value getter is called) if (val instanceof UnresolvedValue) { @@ -3241,8 +3241,7 @@ export class Pointer extends Ref { this.#registeredForGC = true; Pointer.garbage_registry.register((this.is_js_primitive ? this : this.current_val), mockPointer, this) } - catch (e){ - console.log(e) + catch { logger.error("couldn't register for garbage collection: ", this.idString()) } }