Subj : Re: Method added into Object.prototype: can't call directly inside XUL context. To : netscape.public.mozilla.jseng From : Lev Serebryakov Date : Mon Oct 03 2005 01:23 pm But what induces this bug? "Function" is not XPConnect-wrapped object, so XPCNativeWrapper should not hide it, am I right? Minimal code, which illustrates, this bug, doesn't do anything about XPConnect. The same JS engine gives different results in base behaviour in different context... :( It closes way for many legal tricks, which makes JavaScript good programming language for big projects. Maybe, it was Ok when Mozilla was only a browser, but now, when it pretends to be a platform :(. I'll try to debug this tomorrow, but I almost sure, that only authors of JS engine/XPConnect will able to fix this bug :( -- // Lev Serebryakov .