Re: [nodejs] v8::Context::GetCurrent()->Global()

2014-10-29 Thread jas
Can you explain that since every example and piece of documentation regarding Local, Persistent all indicate the inherited function Call() requires access to the current context as indicated by cb->Call(Context::GetCurrent()->Global(), argc, argv). On Wednesday, October 29, 2014 8:21:16 AM UTC-

Re: [nodejs] v8::Context::GetCurrent()->Global()

2014-10-29 Thread Louis Santillan
It looks like you're trying to call the Global object, which makes no sense JS since the Global object isn't accessible in that way. It also wouldn't make sense from the v8 side unless you had set a getter on it. On Tue, Oct 28, 2014 at 12:22 PM, jas wrote: > I have run into a problem and have t

[nodejs] v8::Context::GetCurrent()->Global()

2014-10-28 Thread jas
I have run into a problem and have tried several thing to resolve the problem. The following code: if (v8::Context::InContext()) { cb->Call(v8::Context::GetCurrent()->Global(), argc, argv); } Is causing the following error (from GDB) # # Fatal error in ../deps/v8/src/api.h, line 297 # CHECK(a