Articles tagged: JSAPI Reference
Found 491 documents
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NextProperty On success, JS_NextProperty returns true, with *idp containing the id of the next enumerable own ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_Now JS_Now returns microseconds since the epoch, midnight, January 1, 1970 UTC.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_NumberValue JS_NumberValue converts a C floating-point number of type double to JS::Value, the type of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ObjectIsDate JS_ObjectIsDate() can be used to check if you are dealing with a Date object, or a Date object ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ObjectIsFunction JS_ObjectIsFunction tests whether obj is a function object (faster than comparing obj's class ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ObjectIsRegExp JS_ObjectIsRegExp determines if a specified object, obj, is a RegExp object. If so, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_PreventExtensions All JavaScript objects recognize the concept of extensibility : whether new properties may be ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_PropertyStub The stub functions are not designed to be called directly by a JSAPI application. Rather, they ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_PSGS These macros encapsulate the definition of JSNative -backed JSPropertySpec s, by defining the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_PushArguments JS_PushArguments provides a convenient way to translate a series of native C/C++ values to jsval ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_PutEscapedString JS_PutEscapedString and JS_PutEscapedString write str into buffer escaping any non-printable or ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_RemoveExternalStringFinalizer Remove finalizer from the global GC finalizers table, returning its type code if found, -1 if ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_RemoveRoot JS_RemoveRoot removes the variable that rp points to from the garbage collector's root set.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_RemoveRootRT Unregisters a pointer to a GC thing so that it is no longer a member of the garbage collector's ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ReportError JS_ReportError is the simplest JSAPI function for reporting errors. First it builds an error ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ReportErrorNumber These functions create a JSErrorReport, populate it with an error message obtained from the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ReportOutOfMemory Call JS_ReportOutOfMemory to report that an operation failed because the system is out of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ReportPendingException If an exception is pending in the context cx, JS_ReportPendingException converts the exception ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ResolveStandardClass JS_ResolveStandardClass resolves id, which must contain either a string or an int, to a standard ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_RestoreExceptionState This function permits to restore any previously saved exception state which was saved into a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SameValue SameValue slightly differs from strict equality (===) in that +0 and -0 are not the same and in ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SaveExceptionState Saves the current exception state (that is, any pending exception, or a cleared exception state) ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SaveFrameChain These two functions are used to set aside cx 's call stack while that stack is inactive. After a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ScheduleGC JS_ScheduleGC sets the nextScheduled parameter of GC.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SealObject JS_SealObject prevents all write access to the object, either to add a new property, delete an ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetAllNonReservedSlotsToUndefined JS_SetAllNonReservedSlotsToUndefined assignes undefined to all of obj 's own properties, except ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetArrayLength JS_SetArrayLength sets the.length property of an object obj. length indicates the number of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetBranchCallback If the callback returns JS_TRUE, the JS engine continues to execute the script.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetCallReturnValue2 Calling JS_SetCallReturnValue2 indicates to the runtime that the native will return a value of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetCheckObjectAccessCallback Set the runtime-wide check-object-access callback. This function is deprecated. In SpiderMonkey ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetCompartmentNameCallback JS_SetCompartmentNameCallback sets callback function which will be called to name the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetContextCallback JS_SetContextCallback specifies a callback function that is automatically called when JSContext ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetDefaultLocale JS_SetDefaultLocale sets the default locale for the ECMAScript Internationalization API ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetDestroyCompartmentCallback JS_SetDestroyCompartmentCallback sets callback function which will be called when sweeping each ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetElement JS_SetElement assigns a value to a numeric property of an object. It behaves like the JavaScript ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetErrorReporter JS_SetErrorReporter enables you to define and use your own error reporting mechanism in your ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetExtraGCRoots Register externally maintained GC roots.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetFunctionCallback JS_SetFunctionCallback sets a C function to be called each time a JavaScript function is invoked ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetGCCallback JS_SetGCCallback sets a callback function which the garbage collector calls at several points ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetGCParametersBasedOnAvailableMemory JS_SetGCParametersBasedOnAvailableMemory adjusts the parameters of the garbage collection based ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetGCZeal JS_SetGCZeal sets the level of additional garbage collection to perform for a runtime, for the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetGlobalObject This function is obsolete; see also JS_GetGlobalObject.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetNativeStackQuota JS_SetNativeStackQuota sets the size of the native stack that should not be exceeded. To disable ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetObjectPrincipalsFinder Set the runtime-wide object-principals-finder callback. This function is deprecated. In ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetOperationCallback These functions allow setting an operation callback that will be called from the JS thread some ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetOptions JS_SetOptions sets the option flags of a given JS context cx. This function returns a uint32 ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetParent JS_SetParent sets an object's parent.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetPendingException JS_SetPendingException sets the current exception being thrown within a context. If an exception ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetPrincipalsTranscoder Set the runtime-wide principals transcoder callback. This function is deprecated. In ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetPrivate If a JSClass has the JSCLASS_HAS_PRIVATE flag, each object of that class has a private field of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetProperty JS_SetProperty assigns the value v to the property name of the object obj. It behaves like the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetPropertyAttributes JS_SetPropertyAttributes sets the attributes for a specified property, name of an object obj. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetPrototype JS_SetPrototype sets the prototype object for a specified object. A prototype object provides ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetRegExpInput JS_SetRegExpInput sets the pending input string of the built-in RegExp object to the specified ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetScriptStackQuota Set the quota on the number of bytes that stack-like data structures can use when the runtime ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetThreadStackLimit JS_SetThreadStackLimit sets the maximum (if stack grows upward) or minimum (downward) legal ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetVersion JS_SetVersion attempts to set the version of JavaScript to version for a specified executable ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SetVersionForCompartment JS_SetVersionForCompartment attempts to set the version of JavaScript to version for a specified ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SET_TRACING_DETAILS Set debugging information about the next thing to be traced by a JSTracer.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ShutDown Destroys all free-standing resources allocated by SpiderMonkey, not associated with any ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_StrictlyEqual JS_StrictlyEqual determines if v1 is strictly equal to v2 under the JavaScript === operator, as ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_StringEqualsAscii JS_StringEqualsAscii and JS_FlatStringEqualsAscii compare string str and ASCII string asciiBytes.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_StringHasBeenInterned JS_StringHasBeenInterned returns true if the string str is interned.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_StringHasLatin1Chars JS_StringHasLatin1Chars returns true iff the string's characters are stored as Latin1.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_StringIsFlat JS_StringIsFlat returns true if the string is flattened.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_StringToVersion JS_StringToVersion attempts to convert the version string to a JSVersion value. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_SuspendRequest Suspends the calling thread's current request, if any, to allow the thread to block or perform ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_THREADSAFE JS_THREADSAFE was a compile-time option that enables support for running multiple threads of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ThrowStopIteration JS_ThrowStopIteration throws the appropriate StopIteration object for the function currently ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ToggleOptions JS_ToggleOptions toggles context-wide options. It is equivalent to JS_SetOptions (cx, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_TracerInit JS_TraceChildren and other tracing APIs call the tracer callback for each traceable thing ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_TypeOfValue JS_TypeOfValue examines a specified JS value, v, and returns its JS data type. The return value ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_Unlock Unlock a previously locked JS run-time environment.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_updateMallocCounter JS_updateMallocCounter decrements malloc counter of GC and the zone of the context.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ValueToBoolean JS_ValueToBoolean converts a specified JavaScript value, v, to a boolean value. It implements ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ValueToECMAInt32 JS_ValueToECMAInt32, JS_ValueToECMAUint32, and JS_ValueToUint16 convert a JavaScript value to ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ValueToFunction Convert a JS::Value to a JSFunction.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ValueToId JS_ValueToId converts a specified JS::Value, v, to a jsid. If v is an integer, *idp receives an ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ValueToInt32 JS_ValueToInt32 converts a specified JS value, v, to a 32-bit signed integer (-2147483648 to ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ValueToNumber JS_ValueToNumber converts a JavaScript value to a number. It implements the ToNumber operator ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ValueToObject JS_ValueToObject converts a specified JavaScript value, v, to an object. On success, this ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ValueToSource JS_ValueToSource converts a specified JavaScript value, v, to a JavaScript source.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ValueToString JS_ValueToString converts a specified JavaScript value, v, to a string. It implements the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_VersionToString JS_VersionToString attempts to convert the version to a const char * string representation. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_YieldRequest Momentarily suspend the current JSAPI request, allowing garbage collection to run if another ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/OBJECT_TO_JSVAL OBJECT_TO_JSVAL casts obj from type JSObject * to jsval. If obj is NULL, the result is JSVAL_NULL.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/PRIVATE_TO_JSVAL With PRIVATE_TO_JSVAL(), an application can store a private data pointer, p, as a jsval. This ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/Property_attributes Some property attributes are defined in the ECMAScript standard, in ECMA 262-3 §8.6.1. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/Stored_value In the JSAPI, the stored value of an object property is its last known value. For a data ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/STRING_TO_JSVAL STRING_TO_JSVAL casts a given JSString * to jsval. str must be a non-null pointer of type ...
- Mozilla/Projects/SpiderMonkey/Split_object In SpiderMonkey, a split object is made up of two JSObject s: an inner object and an outer object.