Ok, thanks a lot for your quick response. Appreciate it. On Thursday, March 14, 2019 at 12:16:36 PM UTC-5, Andrey Semashev wrote: > > No, I did not solve this problem. At the time, I was using Mozilla JS > engine and because of this problem stayed on it. I have moved away from > that project quite a few years ago, so I don't know if there were any > developments on this issue. > > On 3/14/19 8:04 PM, vance huang wrote: > > Hi, Andrey: > > > > I am having similar issue as you regarding how to implement the vxml > > scoping hierarchy using v8 (coming from old spidermonkey). Do you get > > this issue resolved? Any help/direction will be really appreciated. > Thanks. > > > > Vance > > > > On Friday, January 22, 2010 at 8:47:27 AM UTC-6, Andrey Semashev wrote: > > > > I'll explain more closely to the code. Let's assume my scope > hierarchy > > is initialized the way I presented in my post. I have this script: > > > > var x = 10; > > > > and I want to execute it in the document scope. So the sequence > should > > be like this: > > > > [set the current scope to session.application.document] > > v8::Script::Run(); // run the script > > [restore scope to the root object] > > > > so that then I have "typeof(session.application.document.x) == > > number", and "typeof(x) == undefined". > > > > On 22 янв, 17:31, Flier Lu <flier...@gmail.com> wrote: > > > So, what's your expected? As you know, any object you create in > > global > > > name space will be accessible as a property of global object. > > > > > > On 1月22日, 下午10时21分, Andrey Semashev > > <andrey.semas...@gmail.com> wrote: > > > > > > > > > > > > > BTW, this is how I create the needed scope hierarchy: > > > > > > > var Session = new Function(); > > > > var Application = new Function(); > > > > var Document = new Function(); > > > > var Dialog = new Function(); > > > > > > > var session = new Session(); > > > > Application.prototype = session; > > > > > > > session.application = new Application(); > > > > Document.prototype = session.application; > > > > > > > session.application.document = new Document(); > > > > Dialog.prototype = session.application.document; > > > > > > > session.application.document.dialog = new Dialog(); > > > > -- > > -- > > v8-users mailing list > > v8-u...@googlegroups.com <javascript:> > > http://groups.google.com/group/v8-users > > --- > > You received this message because you are subscribed to a topic in the > > Google Groups "v8-users" group. > > To unsubscribe from this topic, visit > > https://groups.google.com/d/topic/v8-users/whmYtQafCjs/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > > v8-users+u...@googlegroups.com <javascript:> > > <mailto:v8-users+u...@googlegroups.com <javascript:>>. > > For more options, visit https://groups.google.com/d/optout. > >
-- -- 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 and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.