-
-
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 lts] More assertions for Application lifecycle methods
While debugging an issue in the ember-inspector test harness, we eventually we were dealing with very subtle hanging and errors that were ultimately caused by trying to boot an already destroyed `Application`. The issue was very difficult to debug partly due to some states (like `_bootPromise`) was reset in `willDestroy`, which is not necessary, but was enough to cause other lifecycle methods (like `boot`) to happily restart the process, but just hangs forever later on. This removes the state reset form `willDestroy` and just adds a lot more assertions in general, hopefully making these kind of situations fail louder and earlier.
- Loading branch information
1 parent
49a84c5
commit a078de8
Showing
1 changed file
with
64 additions
and
8 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