On 3/28/19 1:23 PM, Kent Williams wrote:
> 1. The init before opening the request is fine.
>
> 2. JS::DestroyContext with active request is a dumb idea.
>
> "Requests are gone in Trunk"
>
> Is there any point at trying to port to ESR > 60? And 'port' is the
> proper word in my opinion. The SpiderMonkey API is a moving target.
I don't think it's different from the usual calculation. We'll stop
backporting bugfixes when the new esr comes out, and I suspect porting
across 1 esr at a time is easier than porting across 2. But those are
independent of the specific esr in question, and will matter more or
less for your particular situation.
Generally, I think we're a bit faster and less memory-intensive since
esr60, and it's easier to integrate with the GC properly. Feature-wise,
I would guess you probably wouldn't expect to make use of BigInt,
BinAST, or WASM which are all new or dramatically improved. The things
most likely to be useful to you are modules and Promises. The things
most likely to be annoying are that jsapi.h is gradually being split up
into separate headers, and the introduction of Realms.
That's my take based on a quick skim of hg history.
Hopefully porting will be a little easier with the existence of
https://github.com/spidermonkey-embedders/
<
https://github.com/spidermonkey-embedders/> than it has been in the
past. (I have no quibble with calling it porting; I know how much churn
there is, and we make no pretense of interface stability anymore. I feel
like the APi churn has slowed down a fair bit, fwiw.)