| |||||||||
SummarySpecifies the global object for an executable script context. | |||||||||
Syntaxvoid JS_SetGlobalObject(JSContext *cx, JSObject *obj);
| |||||||||
DescriptionJS_SetGlobalObject sets the global object to obj for a specified executable script context, cx . Ordinarily you set a context's global object when you call JS_InitStandardClasses to set up the general JS function and object classes for use by scripts.
| |||||||||
See Also
|