On 10月9日, 下午3時00分, Hannes Wallnoefer <[email protected]> wrote:
> On Oct 9, 8:25 am, sleepnova <[email protected]> wrote:
>
> > Is there any document about this?
>
> Not really. This was introduced with a small patch to make
> JavaAdapters implementing org.mozilla.javascript.Scriptable be treated
> as Scriptables (native JS objects) by Rhino.
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=462827
>
> This is a neat hack, but it has its perils, so while it's great for
> prototyping, I recommend implementing host objects in Java (which is
> what I do now in Helma NG).

So, you suggest to implement host object in Java instead of js.
I am wondering if there is any plan to define an official way to
implement host object in js.
I think it would be great to have such extension so people can
implement functionalities through uniform js abstraction.

> As for the problem you're seeing, Helma NG uses a slightly patched
> Rhino snapshot, and the problem is in that patch, not Rhino itself. I
> introduced the patch to fix other problems with scriptable
> JavaAdapters. It's not needed anymore, so I'll remove it or fix it in
> the next version.
>
> Hannes
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to