Skip to content

Commit

Permalink
Fix ThreadSignal initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed Aug 31, 2024
1 parent cec3cc7 commit 574b5d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/big-goats-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@quilted/threads': patch
---

Fix `ThreadSignal` initialization
2 changes: 1 addition & 1 deletion packages/threads/source/ThreadSignal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class ThreadSignal<T> extends Signal<T> {
retain?.(serialization);

const valueDescriptor = Object.getOwnPropertyDescriptor(
Object.getPrototypeOf(signal),
Object.getPrototypeOf(this),
'value',
)!;

Expand Down

0 comments on commit 574b5d6

Please sign in to comment.