Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX beta] Reverts EmberError to be a standard function #17233

Merged

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Nov 28, 2018

This reverts a change from some years ago that made EmberError a native
class. The recent change to build non-transpiled classes is causing
failures in libraries that subclass EmberError (specifically Ember Data)
and with the messiness around how EmberError actually does the
extending, using native classes is not ideal.

Eventually, EmberError should be replaced entirely as it is not a good
idea to subclass Error at all. This will have to happen in the future,
and will likely require an RFC.

@rwjblue
Copy link
Member

rwjblue commented Nov 28, 2018

@pzuraq can you mark this as BUGFIX beta?

This reverts a change from some years ago that made EmberError a native
class. The recent change to build non-transpiled classes is causing
failures in libraries that subclass EmberError (specifically Ember Data)
and with the messiness around how EmberError actually does the
extending, using native classes is not ideal.

Eventually, EmberError should be replaced entirely as it is not a good
idea to subclass Error at all. This will have to happen in the future,
and will likely require an RFC.
@pzuraq pzuraq force-pushed the bugfix/revert-ember-error-to-standard-function branch from d8556c9 to bbc4647 Compare November 28, 2018 01:18
@pzuraq pzuraq changed the title [BUGFIX] Reverts EmberError to be a standard function [BUGFIX beta] Reverts EmberError to be a standard function Nov 28, 2018
@rwjblue rwjblue merged commit 352be04 into emberjs:master Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants