Articles tagged: JSAPI Reference
Found 489 documents
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/BOOLEAN_TO_JSVAL BOOLEAN_TO_JSVAL converts a bool argument, b, to a boolean jsval.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/DOUBLE_TO_JSVAL DOUBLE_TO_JSVAL is the inverse of JS::ToNumber.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/INT_FITS_IN_JSVAL Determines if a specified C integer value, i, lies within the range allowed for integer jsval s. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/INT_TO_JSVAL INT_TO_JSVAL converts a C integer, i, to a jsval.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::Add_Root These functions are obsoleted, use JS::PersistentRooted instead.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::AutoIdArray JS::AutoIdArray takes the ownership of JSIdArray, and frees it in destructor by calling ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::AutoSaveExceptionState JS::AutoSaveExceptionState saves and later restores the current exception state of a given ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::AutoValueArray JS::AutoValueArrayN holds a rooted array of JS::Value. This is typically used for local ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::AutoVectorRooter JS::AutoVectorRooterT holds a variable-size rooted array of type T.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::BooleanValue JS::BooleanValue converts a C boolean of type bool to JS::Value, the type of JavaScript values.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::Call JS::Call calls a specified function, fun, on an object, thisObj. In terms of function execution, ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::CallArgs JS::CallArgs is helper class encapsulating access to the callee, this value, arguments, and ...
- 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::Compile JS::Compile compiles a script, srcBuf, chars, bytes, or file, for execution.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::CompileFunction JS::CompileFunction compiles a function from a text string chars, bytes, or srcBuf.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::CompileOffThread JS::CompileOffThread compiles a script, chars for execution.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::CompileOptions Some methods of JS::OwningCompileOptions and JS::CompileOptions return the instance itself to ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::Construct JS::Construct calls a specified function as a constructor, fun.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::CreateError JS::CreateError creates an Error object with specified properties.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::CurrentGlobalOrNull JS::CurrentGlobalOrNull() returns the global object for whatever function is currently running ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::DoubleNaNValue JS::DoubleNaNValue returns a value of type JS::Value that represents an IEEE floating-point ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::DoubleValue JS::DoubleValue converts a C floating-point number of type double to JS::Value, the type of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::Evaluate JS::Evaluate compiles and executes a script in the specified scope, obj or scopeChain.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::FalseValue JS::FalseValue creates a JS::Value that represents the JavaScript value false.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::Float32Value JS::Float32Value converts a C floating-point number of type float to JS::Value, the type of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::GetFirstArgumentAsTypeHint JS::GetFirstArgumentAsTypeHint converts first argument of @@toPrimitive method to JSType.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::GetSelfHostedFunction JS::GetSelfHostedFunction creates a new JavaScript function implemented in self-hosted JavaScript.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::Handle Here, ptr represents the private member of JS::HandleT, typed with T.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::HandleValueArray JS::HandleValueArray is a handle to an array of rooted values. This is useful as a parameter ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::IdentifyStandardInstance JS::IdentifyStandardInstance determines if the given object is an instance for a standard class. ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::Int32Value JS::Int32Value converts a C signed 32-bit integer of type int32_t to JS::Value, the type of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::IsCallable JS::IsCallable returns whether the given function object is callable.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::MutableHandle Here, ptr represents the private member of JS::MutableHandleT, typed with T *.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::NewFunctionFromSpec JS::NewFunctionFromSpec creates a new function based on the given JSFunctionSpec, *fs. id is the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::NullHandleValue JS::NullHandleValue is a JS::HandleValue constant that represents the JavaScript value null.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::NullValue JS::NullValue creates a JS::Value that represents the JavaScript value null.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::NumberValue JS::NumberValue converts a C integer or floating-point value to JS::Value, the type of ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ObjectOrNullValue JS::ObjectValue converts a given JSObject to JS::Value. If the pointer is null, it returns ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ObjectValue JS::ObjectValue converts a given JSObject to JS::Value. The conversion always succeeds.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::OrdinaryToPrimitive JS::OrdinaryToPrimitive converts a JavaScript object to a specified type value, by the algorithm ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::PersistentRooted Here, ptr represents the private member of JS::PersistentRootedT, typed with T.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::PropertySpecNameEqualsId JS::PropertySpecNameEqualsId determines if the given JSPropertySpec::name or ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::PropertySpecNameIsSymbol JS::PropertySpecNameIsSymbol determines if the given JSPropertySpec::name or ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::PropertySpecNameToPermanentId JS::PropertySpecNameToPermanentId creates a jsid that does not need to be marked for GC from ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ProtoKeyToId JS::ProtoKeyToId converts a specified JS prototype key key, to a JS ID. JS ::ProtoKeyToId stores ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::Remove_Root JS::Remove*Root removes the variable that rp points to from the garbage collector's root set.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::Rooted Here, ptr represents the private member of JS::RootedT, typed with T.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::SetLargeAllocationFailureCallback If a large allocation fails when calling pod_{calloc,realloc}CanGC, the JS engine may call the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::SetOutOfMemoryCallback Unlike the error reporter, which is only called if the exception for an OOM bubbles up and is ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::SourceBufferHolder JS::SourceBufferHolder is the container class for passing in script source buffers to the JS ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::StringValue JS::StringValue converts a given JSString to JS::Value. The conversion always succeeds.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::SymbolValue JS::SymbolValue converts a given JS::Symbol to JS::Value. The conversion always succeeds.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ToBoolean JS::ToBoolean converts a JavaScript value to a boolean. It implements the ToBoolean operation ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ToInt32 JS::ToInt32 converts a JavaScript value to a signed 32bit integer. It implements the ToInt32 ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ToInt64 JS::ToInt64 converts a JavaScript value to a signed 64bit integer.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ToNumber JS::ToNumber converts a JavaScript value to a number. It implements the ToNumber operator ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ToPrimitive JS::ToPrimitive converts a JavaScript object, obj, to a primitive value using ECMAScript 6 ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ToString JS::ToString returns a string representation of a JavaScript value.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ToUint16 JS::ToInt16 converts a JavaScript value to an unsigned 16bit integer. It implements the ToInt16 ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ToUint32 JS::ToInt32 converts a JavaScript value to an unsigned 32bit integer. It implements the ToInt32 ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::ToUint64 JS::ToInt64 converts a JavaScript value to an unsigned 64bit integer.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::TrueHandleValue JS::TrueHandleValue and JS::FalseHandleValue are JS::HandleValue constants that represent the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::TrueValue JS::TrueValue creates a JS::Value that represents the JavaScript value true.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::UndefinedHandleValue JS::UndefinedHandleValue is a JS::HandleValue constant that represents the JavaScript value ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS::UndefinedValue JS::UndefinedValue creates a JS::Value that represents the JavaScript value undefined.
- Mozilla/Projects/SpiderMonkey/JSAPI_Reference/JS::Value A C++ variable of type JS::Value represents a value in JavaScript: a string, number, object ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSAutoByteString JSAutoByteString takes the ownership of string and frees it in destructor.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSAutoCompartment
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSBool JSBool is the return type of many JSAPI functions and callbacks. JS_TRUE indicates success; ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/jschar jschar, a typedef for the standard C++ type char16_t, will be removed in JSAPI 38. Functions ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSCheckAccessOp Check whether obj[id] may be accessed per mode, returning JS_FALSE on error/exception, JS_TRUE ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSClass Use JSClass to define a custom class of JavaScript objects. A JSClass has a name, flags, and ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSClass.call Note that when a custom object is called, a this argument is calculated for it just as if it ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSClass.flags The flags field is of type uint32_t. Its value is the logical OR of zero or more of the ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSConstDoubleSpec JSConstDoubleSpecs is used to define a set of double values that are assigned as properties to ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSConvertOp JSConvertOp callback specifies conversion behavior for objects having this class, implementing ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSDeletePropertyOp JSDeletePropertyOp callback is a hook that applications may install to be called at some point ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/jsdouble jsdouble is a C floating-point number type. It is defined to be a 64-bit, IEEE 754 compliant ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSEnumerateOp JSEnumerateOp is called just before an object is enumerated (via a for...in statement, an array ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSErrorFormatString JSErrorFormatString is a struct to represent error message and type, returned by ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSErrorReport JSErrorReport describes a single error that occurs in the execution of script.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSExceptionState A JSExceptionState object is returned by the JS_SaveExceptionState function, and is passed to ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSExnType These types are part of a JSErrorFormatString structure. They define which error to throw in ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSExtendedClass To implement a custom class that uses any of the JSExtendedClass callbacks:
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSExtendedClass.outerObject See split objects.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSExtendedClass.wrappedObject If a class has the JSCLASS_IS_EXTENDED bit set in its JSClass.flags and has a non-null ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSFastNative The callback should use the following macros to access the fields of vp :
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSFinalizeOp The JSFinalizeOp is analogous to Java finalizers or C++ destructors. The garbage collector calls ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSFreeOp Various finalization API takes not JSContext * but rather either JSFreeOp structure or its ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSFunctionSpec JSFunctionSpec defines the attributes for a single JS function to associate with an object. An ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSFUN_BOUND_METHOD This macro exists only for backward compatibility with existing applications. Its use is ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSFUN_GLOBAL_PARENT
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSGetObjectOps JSObjectOps is used by JS_NewObject 's internals to discover the set of high-level object ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSHasInstanceOp JSHasInstanceOp is called to check whether v is an instance of obj. Return false on error or ...
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/jsid jsid is either a 31-bit signed integer, interned string or object.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSIdArray JSIdArray is used to hold IDs for enumerated properties associated with an object.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSID_EMPTY JSID_EMPTY is an internal jsid value which is used in type inference code.
- Mozilla/Projects/SpiderMonkey/JSAPI_reference/JSID_IS_EMPTY JSID_IS_EMPTY tests whether a specified JS ID, id, is JSID_EMPTY.
- 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.