Visit Mozilla.org

JSFUN GLOBAL PARENT

From MDC

Deprecated

Flag that indicates a call to a function nominally associated with an object is called with the global object as its scope chain, rather than with the parent of the function.

[edit] Syntax

JSFUN_GLOBAL_PARENT

[edit] Description

This macro is deprecated. Instead of using it, use JS_CloneFunctionObject. JSFUN_GLOBAL_PARENT is a flag that indicates a call to a function nominally associated with an object is called with the global object as its scope chain, rather than with the parent of the function. This permits the function to operate on free variables in the larger scope when they are found through prototype lookups.

LXR ID Search for JSFUN_GLOBAL_PARENT