Friday, 29 June 2012

Re: JavaScript

Am Freitag, den 29.06.2012, 19:24 +0200 schrieb "Chris Young"
<chris.young@unsatisfactorysoftware.co.uk>:

> v1.50-2 (which is positively prehistoric, but the only working ported
> version I have) unfortunately does not work, I fudged it with some
> macros from newer Spidermonkey includes, and it is calling alert
> (warn_user()) but with no text. Not sure if it is easy to get it
> working, for such an old version it's probably not worth it. I have
> a quick port of Spidermonkey 1.85 but having issues with it crashing;
> I guess I have quite a while to fix this though.
>
> I'd be interested to hear which versions of Spidermonkey are ported
> to
> other operating systems we target (and any porting tips!)

Hello,

my local working copy already works well with spidermonkey-1.7. It's
easy.
The main problem is:

1. some macros are missing. That's easy, just take the ones from
spidermonkey 1.8.5
2. more important - JSFastNative has become JSNative. Old version of
JSNative was dropped in 1.8.
That's why we need an intermediate macro for JS_FS, JS_FN.
( The newer spidermonkey JSNative prototype is the old
JSFastNative!)
I'm going to send patches this night.
It will make alert() work.


I've already send an patch for another problem which also applies to
newer spidermonkey versions.
(Altough the newer spidermonkey may detects the error and does nothing
in the wrong destruction order.)

If people do not want spidermonkey 1.7 support, please let me know
before I put more work in it.

Greets,
Ole

No comments:

Post a Comment