Re: [v8-users] Hiding the calling function

2015-09-29 Thread Danny Dorfman
Hey Andreas. Your solution worked like magic. Very elegant. Thanks! On Tuesday, September 29, 2015 at 8:39:38 PM UTC+3, Andreas Rossberg wrote: > > On 29 September 2015 at 15:41, Danny Dorfman > wrote: > > Hi there, > > > > I need to write an application that run some mixed JavaScript code. Wh

Re: [v8-users] Hiding the calling function

2015-09-29 Thread 'Andreas Rossberg' via v8-users
On 29 September 2015 at 15:41, Danny Dorfman wrote: > Hi there, > > I need to write an application that run some mixed JavaScript code. What I > mean by mixed, is that some of the code is mine, and some is external. > My code will be calling some external code, but I would like to conceal the > ca

Re: [v8-users] Hiding the calling function

2015-09-29 Thread Ben Noordhuis
On Tue, Sep 29, 2015 at 3:46 PM, Danny Dorfman wrote: > Hi there, > > I need to write an application that runs some mixed JavaScript code. What I > mean by "mixed", is that some of the code is mine, and some is external. > My code will be calling some external code, but I would like to conceal the

[v8-users] Hiding the calling function

2015-09-29 Thread Danny Dorfman
Hi there, I need to write an application that runs some mixed JavaScript code. What I mean by "mixed", is that some of the code is mine, and some is external. My code will be calling some external code, but I would like to conceal the call stack. In other words, in a scenario like this: // my c

[v8-users] Hiding the calling function

2015-09-29 Thread Danny Dorfman
Hi there, I need to write an application that run some mixed JavaScript code. What I mean by mixed, is that some of the code is mine, and some is external. My code will be calling some external code, but I would like to conceal the call stack. In other words, in a scenario like this: // my code

Re: [v8-users] Re: Handles

2015-09-29 Thread Deepak Subramanian
Hi, Does not the created handle copy point to the same object ? Anyway, are handles and persistent similar and can one be copied to another ? On Monday, September 28, 2015 at 8:34:45 AM UTC+2, Andreas Rossberg wrote: > > Handles aside, note that String values are considered to be immutable

[v8-users] Re: Handles

2015-09-29 Thread Deepak Subramanian
Hi, I think you have posted it in the wrong place ? with the password ??!! On Monday, September 28, 2015 at 2:50:33 PM UTC+2, GS apple wrote: > > prepare Mercurial As a first step, you should teach your Mercurial name. So > you open the file ~ / .hgrc (or Mercurial.ini in your home directory for

Re: [v8-users] Re: Handles

2015-09-29 Thread Deepak Subramanian
Thanks Caitlin and Santillan. Awesome. BTW, how do I check if Handle exists ? I mean if(*str != nullptr) is not correct right ? On Saturday, September 26, 2015 at 2:27:11 AM UTC+2, Louis P. Santillan wrote: > > As Caitlin mentioned, if you have a `Local str` you can do > something like `char

Re: [v8-users] Reusing contexts across scripts

2015-09-29 Thread Rethish Kumar P.S
Thanks Jakob for the definitive clarification. On Tuesday, September 29, 2015 at 4:02:56 PM UTC+5:30, Jakob Kummerow wrote: > > There is no way to reset a context. It's probably best to just create a > fresh one. Search the archives of this list, this has been asked and > answered several times

Re: [v8-users] Reusing contexts across scripts

2015-09-29 Thread Jakob Kummerow
There is no way to reset a context. It's probably best to just create a fresh one. Search the archives of this list, this has been asked and answered several times. On Tue, Sep 29, 2015 at 12:03 PM, Rethish Kumar P.S wrote: > Hi, > > I have an application which has multiple contexts in an Isolat

[v8-users] Reusing contexts across scripts

2015-09-29 Thread Rethish Kumar P.S
Hi, I have an application which has multiple contexts in an Isolate. The context pool is preallocated during application init. Each of these contexts run independent scripts. Once a script is done with the execution, is there some means to clear/reset the current context? I would like to r