[v8-users] Re: calling Javascript function from C++,

2015-10-29 Thread Ben N
Oops, I meant to type getTime() instead of getMilliseconds(). b e n -- -- 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

Re: [v8-users] calling Javascript function from C++,

2015-10-29 Thread Ben N
Hi Ben I ran some more experiments and I found a memory leak problem which I think was contributing to the slowness. Fixed by adding a HandleScope. { HandleScope scope( isolate ) ; parameters[ 0 ] = Integer::New( isolate, x ) ; parameters[ 1 ] = Integer::New( isolate, y ) ; return

[v8-users] calling Javascript function from C++,

2015-10-29 Thread Ben N
Hi I am just starting out with V8 and I'm slowly finding my way round it but I have run into a problem. I'm sorry if this is a common question or if the answer is obvious, but I have spent some time trying to Google it and I haven't found a satisfactory explanation. The problem I have