Articles tagged: JSAPI Reference
Found 491 documents
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetOptions JS_GetOptions retrieves the option flags of a given JS context cx.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetOwnPropertyDescriptor JS_GetOwnPropertyDescriptor and JS_GetOwnPropertyDescriptorById get a detailed description of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetParent JS_GetParent retrieves the parent object of obj, or NULL if obj does not have a parent.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetParentRuntime JS_GetParentRuntime retrieves a pointer to the parent JSRuntime of the runtime for a specified ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetPendingException If an exception has been thrown in the context cx, and it has not yet been caught or cleared, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetPositiveInfinityValue JS_GetPositiveInfinityValue returns a JS::Value that represents an IEEE floating-point positive ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetPrivate JS_GetPrivate accesses an object's private data field. obj must be an instance of a class that ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetProperty JS_GetProperty examines a specified JS object obj and its prototype chain for a property with ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetPropertyAttributes JS_GetPropertyAttributes retrieves the property attributes of the property with the given name ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetPropertyAttrsGetterAndSetter See JS_GetPropertyAttributes for details about these functions. The only difference is that on ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetPropertyDefault JS_GetPropertyDefault examines a specified JS object obj and its prototype chain for a property ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetPropertyDescriptor JS_GetPropertyDescriptor and JS_GetPropertyDescriptorById find a specified property of an object ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetPrototype JS_GetPrototype retrieves the prototype of a specified object, obj. A prototype object provides ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetRegExpFlags JS_GetRegExpFlags returns flags of the specified object, obj.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetRegExpSource JS_GetRegExpSource returns a source string of the specified object, obj.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetReservedSlot If a JSClass has JSCLASS_HAS_RESERVED_SLOTS(n) in its flags, with n 0, or has a non-null ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetRuntime JS_GetRuntime retrieves a pointer to the JSRuntime with which a specified JSContext, cx, is ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetRuntimePrivate Each JSRuntime has a field of type void * which the application may use for any purpose. It is ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetScopeChain JS_GetScopeChain returns the first JSObject on the scope chain for the JavaScript code currently ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetSecurityCallbacks JS_SetSecurityCallbacks sets the runtime's security callbacks to callbacks. It allows the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetStringBytes JS_GetStringBytes and JS_GetStringBytesZ convert the specified JavaScript string, str, to a C ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetStringCharAt JS_GetStringCharAt and JS_GetFlatStringCharAt get the specified character from the string str.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetStringChars JS_GetStringChars Obsolete since JavaScript 1.8.5 returns a pointer to the first element of an ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetStringCharsAndLength JS_GetStringCharsAndLength gets the characters and the length of the string, str
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetStringEncodingLength JS_GetStringEncodingLength returns the length of the specified string in bytes, regardless of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetStringLength JS_GetStringLength reports the length, in 16-bit code units, of the string str. This is the same ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetTwoByteExternalStringChars JS_GetTwoByteExternalStringChars gets the characters of the string, str.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetTypeName JS_GetTypeName returns a pointer to a string literal description of a specified JS data type, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetVersion JS_GetVersion returns the JavaScript version currently used by the given JSContext, cx. The ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GET_CLASS JS_GET_CLASS returns a pointer to the JSClass associated with a specified JS object, obj. The ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_HasArrayLength JS_HasArrayLength determines if an object, obj, has a length property. If the property exists, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_HasElement JS_HasElement examines a specified JS object, obj, and its prototype chain, for an element or ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_HasInstance JS_HasInstance determines if a specified JS value, v, is an instance of JS object, obj. This ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_HasOwnProperty JS_HasOwnProperty searches an object, obj, for an own property with the specified name. It ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_HasProperty JS_HasProperty searches an object, obj, and its prototype chain, for a property with the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IdArrayGet JS_IdArrayGet gets the item in the specified index of the ID array pointed to by ida.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IdArrayLength JS_IdArrayLength gets the length of the ID array pointed to by ida.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IdToProtoKey JS_IdToProtoKey converts a specified JS ID, id, to a prototype key. On success, JS_IdToProtoKey ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IdToValue JS_IdToValue converts a specified JS ID, id, to a JS value. On success, JS_IdToValue stores the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_Init Initialize SpiderMonkey, returning true only if initialization succeeded. Once this method has ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_InitClass JS_InitClass initializes a JSClass and (optionally) makes it visible to JavaScript code.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_InitCTypesClass Initialize the ctypes object on a global object. The ctypes object will be frozen.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_InitStandardClasses JS_InitStandardClasses initializes the built-in JavaScript global properties. These include all ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_InstanceOf JS_InstanceOf can be used to check whether an object obj is of a particular JSClass. To use it ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_InternJSString JS_InternJSString converts a string str to interned string (interned atom) and returns the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_InternString JS_InternString and JS_InternStringN return an interned JavaScript string with a specified ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsArrayObject JS_IsArrayObject determines if a specified object, obj or value, is an Array object.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsAssigning JS_IsAssigning returns true if a script is executing and its current bytecode is a set ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsBuiltinEvalFunction JS_IsBuiltinEvalFunction returns whether the given function is the global eval function.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsBuiltinFunctionConstructor JS::IsCallable returns whether the given function is the global Function constructor.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsConstructing JS_IsConstructing must be called only from a JSNative called from the engine. cx and vp must be ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsConstructing_PossiblyWithGivenThisObject In the case of a constructor called from JS_ConstructObject and JS_InitClass where the class has ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsConstructor JS_IsConstructor determines if a specified function, fun is a valid constructor object. If so, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsExceptionPending JS_IsExceptionPending returns true if an exception has been thrown in the context cx and the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsExtensible JS_IsExtensible queries [[Extensible]] property of the specified object, obj.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsExternalString JS_IsExternalString returns true if the string is an external string; otherwise it's false.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsGlobalObject JS_IsGlobalObject returns true if obj is a global object, false otherwise.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsIdentifier JS_IsIdentifier tests if the given string is a valid ECMAScript identifier. On successful, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsNative JS_IsNative returns true if the object is a native object.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsNativeFunction JS_IsNativeFunction determines if a specified function object, funobj equals a specified native ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsRunning JS_IsRunning determines if a script or function is currently executing in a specified JSContext, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IsStopIteration JS_IsStopIteration returns true if v is StopIteration, otherwise false.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_IterateCompartments JS_IterateCompartments calls compartmentCallback on every compartment. Beware that there is no ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LeaveCompartment
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LeaveCrossCompartmentCall
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LeaveLocalRootScope See JS_EnterLocalRootScope for an explanation of local root scopes.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LeaveLocalRootScopeWithResult See JS_EnterLocalRootScope for an explanation of local root scopes.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LinkConstructorAndPrototype JS_LinkConstructorAndPrototype sets the prototype property of class constructor function, ctor, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_Lock Lock the JS run-time environment.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LockGCThing JS_LockGCThing is a deprecated function that protects a specified item, thing, associated with ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LookupElement JS_LookupElement examines a specified JavaScript object, obj, for a numeric property numbered index.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LookupProperty The functions JS_LookupProperty, JS_LookupUCProperty, JS_LookupPropertyById, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_LooselyEqual JS_LooselyEqual determines if v1 is loosely equal to v2 under the JavaScript == operator, as ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_MakeStringImmutable A string's characters can never be changed, but SpiderMonkey uses two string optimization ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_malloc JS_malloc allocates a region of memory nbytes in size. On success, JS_malloc returns a pointer ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_MapGCRoots Call JS_MapGCRoots to map the GC's roots table using map(rp, name, data). The root is pointed at ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_MaybeGC JS_MaybeGC tries to determine whether garbage collection in cx 's runtime would free up enough ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_New JS_New creates a new object as though by using the new operator, as described in ECMA 262-3 §11.2.2.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewArrayObject JS_NewArrayObject with contents parameter creates a new array object with the specified contents ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewCompartmentAndGlobalObject
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewContext JS_NewContext creates a new JSContext in the runtime rt. On success, it returns a pointer to the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewDateObject Creates and returns a new JSObject representing a JavaScript Date object, which is ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewDateObjectMsec The returned JSObject is a standard JavaScript Date.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewDependentString JS_NewDependentString creates a new string as a substring of an existing JavaScript string, str. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewDouble JS_NewDouble allocates a copy of the number d on the JavaScript garbage collection heap. This ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewDoubleValue JS_NewDoubleValue creates a floating-point jsval.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewExternalString JS_NewExternalString and JS_NewExternalStringWithClosure create a new JSString whose characters ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewFunction JS_NewFunction creates a new JavaScript function implemented in C/C++. (To create a new function ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewGlobalObject JS_NewGlobalObject creates a new global object based on the specified class.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewNumberValue JS_NewNumberValue converts a C floating-point number of type jsdouble to jsval, the type of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewObject JS_NewObject creates a new object based on a specified class. cx is a pointer to a context ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewObjectForConstructor JS_NewObjectForConstructor creates a new object exactly as the given constructor would if ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewPlainObject JS_NewPlainObject creates a new plain object, like new Object(), with Object.prototype as ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewPropertyIterator Create an object to iterate over the enumerable own properties of obj, in arbitrary order. (This ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewRegExpObject JS_NewRegExpObject and JS_NewUCRegExpObject create a new RegExp instance. The flags from the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewRuntime JS_NewRuntime initializes the JavaScript runtime environment. Call JS_NewRuntime before making ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewScriptObject JS_NewScriptObject returns the script object associated with the given JSScript.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewString JS_NewString creates and returns a new string, using the memory starting at buf and ending at ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewStringCopyN JS_NewStringCopyN allocates space for a JavaScript string and its underlying storage, and copies ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NewStringCopyZ JS_NewStringCopyZ allocates space for a new JavaScript string and its underlying storage, and ...