Skip to content

Commit

Permalink
Keep the context on cancel callback handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlastairTaft committed Apr 25, 2024
1 parent e1a7764 commit bfd114c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/database/src/core/view/EventRegistration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class CallbackContext {
this.hasCancelCallback,
'Raising a cancel event on a listener with no cancel callback'
);
return this.cancelCallback.call(null, error);
return this.cancelCallback.call(error);
}

get hasCancelCallback(): boolean {
Expand Down

0 comments on commit bfd114c

Please sign in to comment.