cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Bukanov ...@igor.fastmail.fm>
Subject Re: Rhino from mozilla.org and continuations
Date Fri, 24 Sep 2004 23:16:10 GMT
Igor Bukanov wrote:
> Ugo Cei wrote:
> 
>> Igor Bukanov wrote:
>>
>>> http://bugzilla.mozilla.org/show_bug.cgi?id=258844 contains a working 
>>> patch against Rhino CVS from mozilla.org to enable Continuation 
>>> support there.
>>
>>
>>
>> What am I supposed to do if I want to play with it?
> 
> ...
> 
>> 2) Do a cvs checkout and build since your patch is already applied?
> 
> Use this option.
> 
> Regards, Igor

The attached patch against cocoon-2.1.5.1 simplifies "playing": it 
changes Rhino bindings to use "org.mozilla.javascript.Function" instead 
of "org.mozilla.javascript.continuations.Continuation" to refer to 
script Continuation objects.

In Rhino from mozilla.org Continuation class is package-private and 
implemented in a very different way compared with Rhino from 
cocondev.org. On the other hand the class in both versions implements 
Function interface and since the bindings in Cocoon use only 
functionality available through this interface the patch minimize the 
amount of code that has to be modified to use Rhino from mozilla.org.

Regards, Igor

Mime
View raw message