Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up modifications to DebuggerAPI when destroying CDPAgent
Summary: When destroying `DebuggerDomainAgent` the code doesn't clean up every modification it made to `DebuggerAPI`. Added a `cleanUp()` function to properly unregister everything. Chose to name the helper function `cleanUp()` instead of `disable()` in the end. This is so that there's no confusion in the future if we do decide to persist agent state. Reviewed By: motiz88 Differential Revision: D54898267 fbshipit-source-id: 7d9baea7221a1f69828764938fb5de0737419f6b
- Loading branch information
1 parent
723d174
commit 55ccdf1
Showing
3 changed files
with
71 additions
and
30 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