Articles tagged: JSAPI Reference
Found 491 documents
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ConvertArguments JS_ConvertArguments provides a convenient way to translate a series of JS values into their ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ConvertArgumentsVA JS_ConvertArgumentsVA is to JS_ConvertArguments as vprintf is to printf. See JS_ConvertArguments ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ConvertValue JS_ConvertValue converts a JavaScript value, v, to the specified type. On success, the converted ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CStringsAreUTF8 By default, all C/C++ strings passed into the JSAPI are treated as ISO/IEC 8859-1, also known as ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DecompileFunction JS_DecompileFunction generates the complete source code of a function declaration from a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DecompileFunctionBody JS_DecompileFunctionBody generates the source code of a function's body, minus the function ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DecompileScript JS_DecompileScript returns the source code of script. If script is a function, it calls ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DecompileScriptObject FIXME: Please provide a description for this function.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DeepFreezeObject JS_DeepFreezeObject freezes obj, and all objects it refers to, recursively. This will not ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefaultValue Renamed to JS::ToPrimitive from JSAPI 44.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefineConstDoubles JS_DefineConstDoubles creates one or more properties for a specified object, obj, where each ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefineElement JS_DefineElement defines a numeric property for a specified object, obj.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefineFunction JS_DefineFunction exposes a C/C++ function to scripts by defining a new method on an existing ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefineFunctions JS_DefineFunctions creates zero or more functions and makes them properties (methods) of a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefineObject JS_DefineObject creates a new object of the class clasp and assigns it to a new property of an ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefineOwnProperty JS_DefineOwnProperty implements the ECMAScript defined function Object.defineProperty. So the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefineProperties JS_DefineProperties creates properties on a specified object, obj.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefineProperty JS_DefineProperty defines a single property in a specified object, obj. JS_DefineUCProperty is ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DefinePropertyWithTinyId JS_DefinePropertyWithTinyId defines an object property with a tiny id. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DeleteElement JS_DeleteElement removes a specified element or numeric property, index, from an object, obj. If ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DeleteElement2 JS_DeleteElement2 removes a specified numeric property, index, from an object, obj. If obj ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DeleteProperty JS_DeleteProperty removes a specified property, name, from an object, obj. JS_DeletePropertyById ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DeleteProperty2 JS_DeleteProperty2 removes a specified property, name, from an object, obj, and stores true or ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DestroyContext These functions destroy a context, cx. JS_DestroyContext additionally performs garbage ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DestroyIdArray JS_DestroyIdArray frees the ID array pointed to by ida.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DestroyRuntime JS_DestroyRuntime frees the specified the JavaScript runtime environment, rt. Call ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DestroyScript JS_DestroyScript destroys the given compiled script, freeing the memory allocated to it. The ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DoubleIsInt32 JS_DoubleIsInt32 returns true if d i sequal to *ip.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DoubleToInt32 JS_DoubleToInt32 converts a C floating-point number of type double to int32, a signed 32-bit ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DropExceptionState This function destroys the specified JSExceptionState object, unrooting as necessary any ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DumpHeap See bug 378261 for detail.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_DumpNamedRoots Each call to JS_AddNamedRoot creates a record in a table of named roots maintained by the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EncodeCharacters JS_EncodeCharacters copies the characters of a jschar array into a char array, converting the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EncodeString JS_EncodeString and JS_EncodeStringToUTF8 convert the specified JavaScript str to a C string (an ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EncodeStringToBuffer JS_EncodeStringToBuffer converts the specified JavaScript str to a C string (an array of 8-bit ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EnterCompartment
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EnterCrossCompartmentCall
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EnterLocalRootScope Scoped local root management allows native functions, getter/setters, etc. to avoid calling ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_Enumerate JS_Enumerate gets the ids of all own properties of the specified object, obj, that have the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EnumerateDiagnosticMemoryRegions JS_EnumerateDiagnosticMemoryRegions enumerates memory regions that contain diagnostic ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EnumerateResolvedStandardClasses JS_EnumerateResolvedStandardClasses enumerates any already-resolved standard class ids into ida, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EnumerateStandardClasses The global object's class's enumerate op should call JS_EnumerateStandardClasses(cx, obj), to ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ErrorFromException If obj is an exception object, the exception will have (or be able to lazily create) an error ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EvaluateScript JS_EvaluateScript compiles and executes a script in the specified scope, obj. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_EvaluateScriptForPrincipals JS_EvaluateScriptForPrincipals compiles and executes a script in the specified scope, obj. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ExecuteRegExp JS_ExecuteRegExp and JS_NewRegExpObjectNoStatics execute the RegExp object, reobj, to the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ExecuteScript JS_ExecuteScript executes a previously-compiled script, script.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ExecuteScriptPart JS_ExecuteScriptPart executes part of a previously compiled script, script. The part parameter ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ExecuteScriptVersion JS_ExecuteScript executes a previously-compiled script, script.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_FileEscapedString JS_FileEscapedString writes str into file fp escaping any non-printable or non-ASCII character. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_Finish JS_Finish is obsolete. Use JS_DestroyRuntime instead.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_FlattenString JS_FlattenString flattens a string str and returns a pointer to JSFlatString.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_FlushCaches .
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ForgetLocalRoot This function is used to interact with scoped local root management. See JS_EnterLocalRootScope ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_FORGET_STRING_FLATNESS JS_FORGET_STRING_FLATNESS converts JSFlatString * to JSString *.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ForwardGetPropertyTo JS_ForwardGetPropertyTo is the base implementation of JS_GetProperty, JS_GetUCProperty, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_freeop JS_freeop is a wrapper for js_free(p) that may delay js_free(p) invocation as a performance ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_FreezeObject Freezes an object. This means that other code cannot delete, add or change any properties on the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_FS Use these macros to define an array of JSFunctionSpec s to pass to JS_DefineFunctions or ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GC JS_GC performs garbage collection of JS objects, strings and other internal data structures that ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetArrayLength JS_GetArrayLength gets the.length property of obj as though by calling JS_GetProperty and ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetArrayPrototype JS_GetArrayPrototype() retrieves the original Array.prototype of a specified object, obj. If an ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetClass JS_GetClass returns a pointer to the JSClass associated with a specified JS object, obj. The ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetClassObject JS_GetClassObject gets the builtin class costructor for the specified prototype key.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetClassPrototype JS_GetClassPrototype gets the builtin class costructor for the specified prototype key.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetCompartmentPrivate Please provide a description for this function.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetConstructor JS_GetConstructor retrieves the constructor property of a given object, obj. If the result is a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetContextPrivate Each JSContext has two fields of type void * which the application may use for any purpose. They ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetContextThread Returns the ID of the associated thread for a context.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetDefaultFreeOp JS_GetDefaultFreeOp returns default JSFreeOp for the runtime.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetElement JS_GetElement examines a specified JS object, obj, and its prototype chain, for an element or ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetEmptyString The returned empty string has the length 0.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetEmptyStringValue JS_GetEmptyStringValue returns the empty string as a JS::Value.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetErrorPrototype JS_GetErrorPrototype returns the original value of Error.prototype from the global object of the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetExternalStringClosure To determine if a string was created as an external string, you can call JS_IsExternalString.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetExternalStringFinalizer JS_GetExternalStringFinalizer returns the fin parameter passed to JS_NewExternalString.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetFlatStringChars
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetFunctionArity JS_GetFunctionArity returns the number of formal parameters of a function, fun. This is the same ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetFunctionCallback Returns the callback currently configured to be called when JavaScript functions are invoked or ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetFunctionFlags JS_GetFunctionFlags retrieves the function flags of a given JavaScript function, fun. These ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetFunctionId JS_GetFunctionId returns the name of a function, fun, as a JSString, or NULL if fun is unnamed. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetFunctionName JS_GetFunctionName retrieves the function name associated with a function pointer, fun. The ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetFunctionObject JS_GetFunctionObject returns the JavaScript Function object for a specified function pointer, fun.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetFunctionPrototype JS_GetFunctionPrototype() retrieves the original Function.prototype of a specified object, obj. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetFunctionScript JS_GetFunctionScript returns a pointer to JSScript for the specified function, fun. If fun is a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetGCParameter JS_GetGCParameter returns the current parameter of the garbage collection.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetGlobalForCompartmentOrNull JS_GetGlobalForCompartmentOrNull() returns the global object for the context and the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetGlobalForObject JS_GetGlobalForObject returns the last non-null object on the parent chain of the input object.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetGlobalForScopeChain JS_GetGlobalForScopeChain() returns the global object for whatever function is currently running ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetGlobalObject This function is obsolete: use JS_GetGlobalForObject or JS_GetGlobalForScopeChain instead. The ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetImplementationVersion JS_GetImplementationVersion returns a hard-coded, English language string that specifies the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetInstancePrivate JS_GetInstancePrivate determines if a JavaScript object, obj, is an instance of a given JSClass, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetInternedStringChars JS_GetInternedStringChars returns a pointer to the interned string.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetLatin1FlatStringChars JS_GetLatin1FlatStringChars and JS_GetTwoByteFlatStringChars return a pointer to the string.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetLatin1InternedStringChars JS_GetLatin1InternedStringChars and JS_GetTwoByteInternedStringChars gets the characters of the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetLatin1StringCharsAndLength JS_GetLatin1StringCharsAndLength and JS_GetTwoByteStringCharsAndLength get the characters and ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetLocaleCallbacks JS_SetLocaleCallbacks establishes locale callbacks. The pointer must persist as long as the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetNaNValue JS_GetNaNValue returns a value of type JS::Value that represents an IEEE floating-point quiet ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetObjectPrototype JS_GetObjectPrototype() retrieves the original Object.prototype of a specified object, obj. If ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_GetObjectRuntime JS_GetObjectRuntime retrieves a pointer to the JSRuntime for a specified JSObject.