-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix] Fix
proto
return value for native classes
Native classes end up calling the nearest class constructor, and with the recent refactor those class constructors return their own prototype instead of the class instance's. This breaks certain functions that currently rely on the `proto` function return the prototype of the instance itself. We're seeing failures in `@ember-decorators/data` due to this bug. This reverts to returning the protoype on the instance directly.
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 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