On Mon, Jul 14, 2014 at 6:48 PM, Bill McCloskey
<[email protected]> wrote:
>
> For the Function stuff, it sounds like maybe those are the shapes for
> stuff like Array.join, Array.reverse, ... (as opposed to
> Array.prototype.join, Array.prototype.reverse, ...). Array is just a
> function after all.

Aha! I didn't know about the static methods. I think you're right. The
relevant code is jsapi.cpp:JS_DefineFunctions(), and if
JSFUN_GENERIC_NATIVE is set for a method then a static version is
created as well.

Thanks!

Nick
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to