Saturday, 30 June 2012

Re: JavaScript

On 30 Jun 2012 10:57:15 +0100, Chris Young wrote:

> On Sat, 30 Jun 2012 02:13:45 +0200, Ole wrote:
>
> > This patch adds support for older spidermonkey versions (tested with
> > 1.7):
> > http://pastebin.com/XEUhYhYY

Also required, and I forgot to mention, is the inline function
JS_NewCompartmentAndGlobalObject in jsapi.h, needs to be declared
"static".

> That seems to work with 1.5, bar a crash in js_Execute() which I can
> ignore past (and don't have time to investigate atm).

This is caused by Spidermonkey expecting a result variable rather than
NULL. I've fixed it in Spidermonkey :)

Chris

No comments:

Post a Comment