This article covers features introduced in SpiderMonkey 24

Determine if given object is a global object.

Syntax

bool
JS_IsGlobalObject(JSObject *obj);
Name Type Description
obj JSObject * The object to examine.

Description

JS_IsGlobalObject returns true if obj is a global object, false otherwise.

See also