Added static method for removing objects previously added by .mapObject() #614
+7
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am developing debugger for J2V8, which uses Stetho for communication over Chrome DevTools protocol. Besides implementing Debugger domain I need to add local v8 variables to
Runtime
by static.mapObject()
in order them to be visible in the Chrome Debugger UI.The problem, that
@ChromeDevtoolsMethod
.releaseObject()
method is not called by Chrome DevTools and I want to remove objects stored in the session manually in order to avoid memory leaks and possible OOM errors. That's why I would like to have static method to remove them from session. Some work-around are possible already now, but it makes sense for me to have it becausestatic
counter-part for adding object is exists -.mapObject()
.