jsdIContext

IID:a2dd25a4-1dd1-11b2-bda6-ed525acd4c35
Inherits From:jsdIEphemeral

Constants

Strict mode is on.
PRInt32 OPT_STRICT = 1
Warnings reported as errors.
PRInt32 OPT_WERR = 2
Makes eval() use the last object on its 'obj' param's scope chain as the ECMA 'variables object'.
PRInt32 OPT_VAROBJFIX = 4
Private data for this object is an nsISupports object. Attempting to alter this bit will result in an NS_ERROR_ILLEGAL_VALUE.
PRInt32 OPT_ISUPPORTS = 8

Properties

readonly jsdIValue* globalObject

Top of the scope chain for this context.

readonly JSContext* JSContext

Context object. Only context's which are also nsISupports objects can be reflected by this interface.

PRUint32 options

OPT_* values above, OR'd together.

readonly nsISupports privateData

Private data for this context, if it is an nsISupports, null otherwise.

PRBool scriptsEnabled

True if this context should be allowed to run scripts, false otherwise. This attribute is only valid for contexts which implement nsIScriptContext. Setting or getting this attribute on any other context will throw a NS_ERROR_NO_INTERFACE exception.

readonly PRUint32 tag

Unique tag among all valid jsdIContext objects, useful as a hash key.

PRInt32 version

Last version set on this context. Scripts typically select this with the "language" attribute. See the VERSION_* consts on jsdIDebuggerService.

readonly nsISupports wrappedContext

Retrieve the underlying context wrapped by this jsdIContext.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com