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

2013-04-04 Thread Stephan Beal
On Thu, Apr 4, 2013 at 9:35 PM, Mike Moening wrote: > I embed V8 in my application(s). > No shell or chromium etc.. > V8 is a static library linked into my applications. > See also, in v8.h: /** * Sets V8 flags from a string. */ static void SetFlagsFromString(const char* str, int leng

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 messag

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 wrote: > I'm using Visual Studio to build V8. > Note sure where/how --allow-natives

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

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 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 ev

[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