Re: [v8-users] Get "Fatal error in HandleScope::HandleScope" when running compiled JS with execeptions.

2013-04-30 Thread Then
Hi, thanks for the response. I am not 100% sure if I understand you correctly. Do you mean that if I used one isolate for each thread, it should work? - I am currently using exactly one isolate for each thread. - One script is compiled and executed in exactly one thread. - And I am not sharing

Re: [v8-users] How to add custom javascript class to v8 before compiling

2013-04-30 Thread Dmitry Lomov
mksnapshot --help On Tue, Apr 30, 2013 at 10:20 AM, Sarim Khan wrote: > Hi, > > Thank you very much. using global.sarim = sarim works :) > > About this --extra-code flag, how to add this ? Any reference would be > great. > > On Tuesday, April 30, 2013 1:49:28 PM UTC+6, Dmitry Lomov wrote: >> >>

Re: [v8-users] How to add custom javascript class to v8 before compiling

2013-04-30 Thread Sarim Khan
Hi, Thank you very much. using global.sarim = sarim works :) About this --extra-code flag, how to add this ? Any reference would be great. On Tuesday, April 30, 2013 1:49:28 PM UTC+6, Dmitry Lomov wrote: > > > > > On Tue, Apr 30, 2013 at 9:08 AM, Sarim Khan > > wrote: > >> Hi, >> >> I have li

Re: [v8-users] How to add custom javascript class to v8 before compiling

2013-04-30 Thread Dmitry Lomov
On Tue, Apr 30, 2013 at 9:08 AM, Sarim Khan wrote: > Hi, > > I have library implemented in javascript. I use that library in c++ apps. > So what i do now, is to use v8, create a context, then read the js files, > and run the js codes inside the context. Then find the js function in c++. > Then us

[v8-users] How to add custom javascript class to v8 before compiling

2013-04-30 Thread Sarim Khan
Hi, I have library implemented in javascript. I use that library in c++ apps. So what i do now, is to use v8, create a context, then read the js files, and run the js codes inside the context. Then find the js function in c++. Then use the function from c++. But this approach comes with a perfo