generated from tc39/template-for-proposals
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix `this` in normal function `notify` Before `notify` was called from the `ReactiveNode` context and was calling with the node as `this` instead of the expected watcher. Instead, set `consumerMarkedDirty` to a function that wraps notify with a proper call with `this`. Also add unit tests for our expected behavior here including closure for an arrow function. * Move the fix deeper into graph to pass wrapper
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters