Subj : Re: Method added into Object.prototype: can't call directly inside XUL context. To : netscape.public.mozilla.jseng From : Lev Serebryakov Date : Tue Oct 04 2005 02:45 am On 10/3/05, Brendan Eich wrote: > It's due to how XUL scripts are precompiled. XUL library does something very special here? We used SpiderMonkey engine in our previous project (as separate library, not XUL framework, but only SpiderMonkey engine), we used precompiled scripts, and everything works Ok. Even more, ability to do such tricks (like adding new methods to base/host classes) was requirement for us and SpiderMonkey was selected instad of MS JScript DLL (customer wanted MS JScript), because it allows such tricks and they worked very well in opposite to MS JScript DLL. Now I'm programming in XUL environment and have bugs exactly as in MS JScript! It is very sad :( > It should be possible to fix with some work. Is here anybody, who can do it? > Let me write a comment in that bug. How can I not to let you write comment in bugzilla? ;-) -- // Lev Serebryakov .