[v8-users] V8 Global Object property dump

2013-04-04 Thread Mike Moening
I'm looking for a simple piece of code that can take a V8 Global Object and 
dump out all its properties.
Basically iterate the global and print out a listing of every property and 
object by name and type information.

This is for debugging an issue where the engine says a property doesn't 
exist that should be there.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
v8-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [v8-users] V8 Global Object property dump

2013-04-04 Thread Toon Verwaest
If you run with --allow-natives-syntax, you can %DebugPrint(object);

hth


On Thu, Apr 4, 2013 at 6:55 PM, Mike Moening mike.moen...@gmail.com wrote:

 I'm looking for a simple piece of code that can take a V8 Global Object
 and dump out all its properties.
 Basically iterate the global and print out a listing of every property and
 object by name and type information.

 This is for debugging an issue where the engine says a property doesn't
 exist that should be there.

 --
 --
 v8-users mailing list
 v8-users@googlegroups.com
 http://groups.google.com/group/v8-users
 ---
 You received this message because you are subscribed to the Google Groups
 v8-users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to v8-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
v8-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [v8-users] V8 Global Object property dump

2013-04-04 Thread Mike Moening
I'm using Visual Studio to build V8.
Note sure where/how --allow-natives-syntax  comes into play.

Ideas?

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
v8-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [v8-users] V8 Global Object property dump

2013-04-04 Thread Toon Verwaest
It's a commandline flag to v8. It depends on how you run V8: If you run d8,
just pass it directly to d8. If you use chromium, use
--js-flags=--allow-natives-syntax.


On Thu, Apr 4, 2013 at 9:21 PM, Mike Moening mike.moen...@gmail.com wrote:

 I'm using Visual Studio to build V8.
 Note sure where/how --allow-natives-syntax  comes into play.

 Ideas?

  --
 --
 v8-users mailing list
 v8-users@googlegroups.com
 http://groups.google.com/group/v8-users
 ---
 You received this message because you are subscribed to the Google Groups
 v8-users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to v8-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
v8-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [v8-users] V8 Global Object property dump

2013-04-04 Thread Mike Moening
I embed V8 in my application(s).
No shell or chromium etc..
V8 is a static library linked into my applications.

What magic does *--allow-natives-syntax* do v8 or chromium?

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
v8-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.