Subj : Re: the native() call... To : netscape.public.mozilla.jseng From : Brendan Eich Date : Mon Jun 14 2004 10:32 pm Brendan Eich wrote: > Oystein wrote: > >> I have asked this before, but I still am not able to figure it out... >> >> 1. The native() call in jsinterp.c : where are the actual function >> implementations for this function pointer... > > > All over the place -- grep for 'uintN argc, jsval \*argv'. That applies in js/src and js/src/xpconnect/src (and other places), but if you study xpconnect closely, you'll see that it can invoke native C++ methods from JS, using XPCOM type libraries. This means that if you are looking for DOM native method implementations, you can't just grep for the JSNative signature. See http://www.mozilla.org/scriptable/ for the background and specs. /be .