Do you want to remove it from the global object or the global object template?

If you want to remove it from the global object, I would image that:

v8::Context::GetCurrent()->Global()->Delete(v8::String::New("my_property"));

That is there are two Delete methods (for name or numeric index) on
the Object class.

-- dean

On Wed, Jun 24, 2009 at 3:14 PM, MJ<[email protected]> wrote:
>
> Does anyone if there is a way to remove an object from the global
> object? Say I created a new named object and set it on the global
> object. How would I go about removing that object from the global
> space so it is no longer referenced by the global object and no longer
> seen in the global space.
> >
>

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to