You may create a new Context with a Global and execute your script under it. 

See 

https://github.com/jxcore/jxcore/blob/master/src/node_script.cc#L416 
(EvalMachine)

Also 
https://github.com/jxcore/jxcore/blob/master/src/jx/Proxy/Mozilla/SpiderHelper.cc#L51
 (for creating global)

Hope it helps.
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to