-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change class field implementation to use initializer methods
Fixes #311 Rather than moving the assignments to the constructor or after the class body, we now wrap them in methods that assign to either the instance or class (both via `this` assignments). The generated code in the constructor or after the class just calls those methods. This should make line numbers always line up and should make it possible to set debugger breakpoints in bound callback methods. It's slightly less correct, but hopefully that won't come up in practice.
- Loading branch information
1 parent
c7c2e41
commit f1df8f7
Showing
7 changed files
with
205 additions
and
95 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
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
Oops, something went wrong.