Subj : Re: Method added into Object.prototype: can't call directly inside To : Lev Serebryakov From : Brendan Eich Date : Tue Oct 04 2005 03:00 am Lev Serebryakov wrote: > 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. You must not have executed precompiled scripts against several different global objects at the same time. > 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 :( Yes, it's sad, but the bug can be fixed. It has been around a long time, only being noticed this year. I wonder why. >>It should be possible to fix with some work. > > Is here anybody, who can do it? Me? >>Let me write a comment in that bug. > > How can I not to let you write comment in bugzilla? ;-) Hey, I'm on your side. See https://bugzilla.mozilla.org/show_bug.cgi?id=300079#c8. /be .