Articles tagged: JSAPI Reference
Found 491 documents
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSID_IS_GCTHING JSID_IS_GCTHING tests whether a specified JS ID, id, is a GC thing, and returns true if it's a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSID_IS_INT JSID_IS_INT tests whether a specified JS ID, id, is an integer, and returns true if it's an integer.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSID_IS_STRING JSID_IS_STRING tests whether a specified JS ID, id, is a string, and returns true if it's a string.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSID_IS_SYMBOL JSID_IS_SYMBOL tests whether a specified JS ID, id, is a JS Symbol, and returns true if it's a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSID_IS_VOID JSID_IS_VOID tests whether a specified JS ID, id, is JSID_VOID.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSID_IS_ZERO JSID_IS_ZERO tests whether a specified JS ID, id, is zero (0 in its integer representation).
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSID_VOID JSID_VOID does not occur in JS scripts but may be used to indicate the absence of a valid jsid. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/jsint jsint and jsuint are 32-bit integer types.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSIteratorOp The JavaScript engine calls the JSExtendedClass.iteratorObject callback to create an iterator ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSMarkOp Call JS_MarkGCThing for each GC thing directly reachable from obj. Use JSVAL_IS_GCTHING to check ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSNative JSNative is the type of native implementations of JavaScript functions. Full documentation of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSNewEnumerateOp From SpiderMonkey 38, JSNewEnumerateOp is the type of ObjectOps::enumerate. This callback ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSNewResolveOp Like JSResolveOp, but flags provide contextual information about the property access.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObject Objects are made up of the following parts:
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOp The callbacks of this type are:
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.defaultValue The JSObjectOps.defaultValue callback corresponds to the [[DefaultValue]] method defined in ECMA ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.defineProperty Define obj[id], an own property of obj named id, having the given initial value, with the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.destroyObjectMap
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.dropProperty The following contract governs JSObjectOps callers and implementations:
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.enumerate For native objects, the enumerate callback first checks the JSCLASS_NEW_ENUMERATE flag of the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.getAttributes Get or set attributes of the property obj[id]. Returns JS_FALSE on error or exception, else ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.getProperty Get, set, or delete obj[id], returning JS_FALSE on error or exception, JS_TRUE on success. If ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.getRequiredSlot Get and set a required slot, one that should already have been allocated. These operations are ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.lookupProperty Look for id in obj and its prototype chain, returning JS_FALSE on error or exception, JS_TRUE on ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.newObjectMap Create a new instance of (a concrete subclass of) JSObjectMap (see jsobj.h), with the nrefs and ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectOps.setProto These hooks must check for cycles without deadlocking, and otherwise take special steps. See ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSObjectPrincipalsFinder The JavaScript engine calls this callback to obtain principals for a JSPrincipals.subsume check.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSPrincipals JSPrincipals is the abstract base class of all principals objects, the objects that identify the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSPRINCIPALS_HOLD JSPRINCIPALS_HOLD and JSPRINCIPALS_DROP are used to manage memory for JSPrincipals objects.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSProperty JSProperty is the abstract base class of all object properties. It is used internally in ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSPropertyDescriptor The JSPropertyDescriptor holds the object that has the property, attributes of the property, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSPropertyOp They are also the types of the JSClass.addProperty, getProperty, and setProperty callbacks, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSPropertySpec JSPropertySpec defines the attributes for a single JS property to associate with an object. Pass ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSProtoKey Each of these types corresponds to standard objects in JavaScript. Some of them are Nightly only ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSReserveSlotsOp JSClass offers the following hook:
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSResolveOp JSResolveOp callback is a hook which is called when a property is not found on an object.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSRuntime In the JSAPI, JSRuntime is the top-level object that represents an instance of the JavaScript ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSString Conceptually, a JavaScript string is just an array of char16_t characters and a length. You ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSStringFinalizer JSStringFinalizer::finalize finalizes external strings created by JS_NewExternalString.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSTraceOp JSTraceOp is the function type for trace operation of the class called to enumerate all ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSType
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_BOOLEAN JSVAL_IS_BOOLEAN(v) is true if the given JavaScript value, v, is a boolean value (that is, it is ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_DOUBLE JSVAL_IS_DOUBLE(v) is true if v is a number represented in memory as a jsdouble.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_GCTHING JSVAL_IS_GCTHING(v) is true if the jsval v is either JSVAL_NULL or a reference to a value that ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_INT JSVAL_IS_INT(v) is true if the jsval v is a number represented in memory as an integer.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_NULL JSVAL_IS_NULL(v) is true if v is JSVAL_NULL, which is the JavaScript null value.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_NUMBER JSVAL_IS_NUMBER(v) is true if v is a JavaScript number.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_OBJECT JSVAL_IS_OBJECT(v) returns true if v is either an object or JSVAL_NULL. This indicates that it ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_PRIMITIVE JSVAL_IS_PRIMITIVE(v) is true if v is undefined, null, a boolean, a number, or a string. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_STRING JSVAL_IS_STRING(v) is true if v is a string.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_IS_VOID JSVAL_IS_VOID(v) is true if v is JSVAL_VOID, which represents the JavaScript value undefined.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_LOCK JSVAL_LOCK is a deprecated feature that is supported only for backward compatibility with ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_NULL JSVAL_NULL is a jsval constant that represents the JavaScript value null. It is equivalent to ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_ONE JSVAL_ONE is equivalent to INT_TO_JSVAL (1).
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_TO_BOOLEAN JSVAL_TO_BOOLEAN casts the value v to a C integer, either 0 or 1. As a precondition, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_TO_DOUBLE JSVAL_TO_DOUBLE casts a specified JS value, v, to a C floating-point number of type jsdouble. As ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_TO_GCTHING JSVAL_TO_GCTHING casts a jsval, v, to a raw pointer. The type of the result is void *.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_TO_INT JSVAL_TO_INT converts a specified integer jsval, v, to the corresponding C integer value. If v ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_TO_OBJECT JSVAL_TO_OBJECT casts the argument, v, to type JSObject *. As a precondition, JSVAL_IS_OBJECT ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_TO_STRING JSVAL_TO_STRING casts the argument, v, to type JSString *. As a precondition, JSVAL_IS_STRING ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_TRUE JSVAL_TRUE and JSVAL_FALSE are jsval constants that represent the JavaScript boolean values, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_UNLOCK JSVAL_UNLOCK is a deprecated feature that is supported only for backward compatibility with ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_VOID JSVAL_VOID is a jsval constant that represents the JavaScript value undefined.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVAL_ZERO JSVAL_ZERO is equivalent to INT_TO_JSVAL (0).
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSVersion The JSVersion enumerated type includes the following values. Each version has a name, which is a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSXDRObjectOp Serialize or deserialize an object, given an XDR state record representing external data. See ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_AddArgumentFormatter JS_AddArgumentFormatter establishes formatter as the conversion function for format strings ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_AddExternalStringFinalizer Add a finalizer for external strings created by JS_NewExternalString using a type-code returned ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_AddFinalizeCallback JS_AddFinalizeCallback add a callback function which the garbage collector calls at several ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_AddRoot These functions are obsoleted, use JS::PersistentRooted instead.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_AliasElement JS_AliasElement assigns an alternate index number for an element or numeric property associated ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_AliasProperty JS_AliasProperty assigns an alternate name for a property associated with a native object. obj ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_AlreadyHasOwnProperty These functions attempt to determine whether a property already exists on a specific JSObject ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ASSERT_STRING_IS_FLAT JS_ASSERT_STRING_IS_FLAT asserts the string is flattened, and returns a pointer to JSFlatString.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_BeginRequest Indicates to the JS engine that the calling thread is entering a region of code that may call ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_BindCallable JS_BindCallable binds the given callable to use the given object as this.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_BufferIsCompilableUnit Given a buffer, return false if the buffer might become a valid JavaScript statement with the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CallFunction Calls a specified JS function.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CheckAccess Check whether a running script may access a given object property.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ClearContextThread Transfer a JSContext from one thread to another.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ClearDateCaches JS_ClearDateCaches clears the cache of calculated local time from each Date object. Call to ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ClearNewbornRoots The last GC thing of each type (object, string, double, external string types) created on a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ClearNonGlobalObject JS_ClearNonGlobalObject removes all of obj 's own properties, except the special __proto__ and ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ClearPendingException JS_ClearPendingException cancels the currently pending exception in cx, if any. (There is a ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ClearRegExpStatics JS_ClearRegExpStatics clears the pending input string and flags of the built-in RegExp object.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ClearScope JS_ClearScope removes all of obj 's own properties, except the special __proto__ and __parent__ ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CloneFunctionObject JS_CloneFunctionObject creates a new function object from funobj. The new object has the same ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompareStrings JS_CompareStrings compares two JS strings, str1 and str2. If the strings are identical in ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompileFileHandleForPrincipals Please provide a description of this function.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompileFileHandleForPrincipalsVersion Please provide a description for this function.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompileFunction JS_CompileFunction compiles a function from a text string, bytes, and optionally associates it ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompileFunctionForPrincipals JS_CompileFunctionForPrincipals compiles a security-enabled function from a text string, bytes, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompileScript JS_CompileScript compiles a script, source, for execution. JS_CompileUCScript is the Unicode ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompileScriptForPrincipals JS_CompileScriptForPrincipals compiles a security-enabled script, src, for execution. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompileUCFunctionForPrincipalsVersion Please provide a description for this function.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompileUTF8File JS_CompileUTF8File compiles the text of script in an external file location for execution by the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_CompileUTF8FileHandle JS_CompileUTF8FileHandle reads a script from a stdio file handle and compiles the script for ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ConcatStrings JS_ConcatStrings concatenates two JS strings, str1 and str2, and returns the result. The result ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ConstructObject JS_ConstructObject creates a new object of the specified class, with the specified prototype and ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_ContextIterator JS_ContextIterator steps through the set of contexts associated with the runtime rt. Each call ...