Re: JSContext refactoring

Ms2ger <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jseng
Message-ID <[email protected]>
Hi Kent,

On 17/06/16 22:31, Kent Williams wrote:
> Looking at our application -- which is a very straightforward embedding
> of Spidermonkey, the only references to JSRuntime is in concert with
> creating the JSContext for our interpreter, like thus:
>>     JS_Init();
>>    JSRuntime *rt = JS_NewRuntime(8L * 1024 * 1024);
>>     if (!rt)
>>         return 1;
>>     JSContext *cx = JS_NewContext(rt, 8192);
> So in essence, creating and using the Runtime would just go away, as
> would the runtime parameter of JS_NewContext. Right?
> 

Yeah, that's basically it.

Ms2ger
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.