Skip to content

Commit

Permalink
fix nested pointer property handling
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Feb 13, 2024
1 parent 763fdc5 commit b8dd84c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/pointers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export abstract class Ref<T = any> 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);
Expand Down

0 comments on commit b8dd84c

Please sign in to comment.