From b8dd84c49c512cedd51171b72b8384fb12c96072 Mon Sep 17 00:00:00 2001 From: benStre Date: Tue, 13 Feb 2024 19:26:30 +0100 Subject: [PATCH] fix nested pointer property handling --- runtime/pointers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/pointers.ts b/runtime/pointers.ts index eccfc326..660b56a4 100644 --- a/runtime/pointers.ts +++ b/runtime/pointers.ts @@ -129,7 +129,7 @@ export abstract class Ref extends EventTarget { if (!pointer) throw new Error("Nested pointer properties are currently not supported"); } - if (!(this instanceof Pointer)) throw new Error("Cannot use $, not a pointer"); + if (!(pointer instanceof Pointer)) throw new Error("Cannot use $, not a pointer"); handler.ownKeys = () => { return Reflect.ownKeys(pointer.val);