objectGroup is just an arbitrary, client-supplied string -- you can use anything, its only purpose is managing life-time of evaluated objects with releaseObjectGroup.
Expression may be as simple as the name of the object you want to examine - essentially similar to what you would do in the DevTools console.
Thanks for the info, but I have some more questions:
1) How can one issue commands such as Runtime.getProperties and
Runtime.evaluate in console as there is no panel for runtime?
2) How can I access the JavaScript objects of a page? Right now I
tried passing "document" and it does not contain any info about the
JavaScript objects of the page.
3) What are the other options that I can pass to "expression" argument
(I mean other than "document" and "localstorage")? Is there anywhere
on the code that I can look to get more info as the documentation does
not have such info.
On Aug 3, 1:55 pm, Andrey Kosyakov <ca...@chromium.org> wrote:
> On Wed, Aug 3, 2011 at 10:19 PM, masoomeh Rudafshani <
>
Runtime.releaseObject() does not directly affect the user-created
object, it just releases the wrapper object that the inspector
maintains to provide the debugger with access to the properties of the
object produced as a result of Runtime.evaluate(). The only way to
actually reclaim the memory of the user object is to have all
references to the object removed (which also includes
Runtime.releaseObject() for all objects that refer to that object and
that were ever evaluated).
Best regards,
Andrey.