Search completed in 1.23 seconds.
JS_ValueToId
Convert a JS::Value to type jsid. Syntax bool JS_ValueToId(JSContext *cx, JS::HandleValue v, JS::MutableHandleId idp); bool JS_StringToId(JSContext *cx, JS::HandleString s, JS::MutableHandleId idp); // Added in SpiderMonkey 38 bool JS_IndexToId(JSContext *cx, uint32_t index, JS::MutableHandleId idp); // Added in SpiderMonkey 17 bool JS_CharsToId(JSContext* cx,
JS::TwoByteChars chars, JS::MutableHandleId idp); // Added in SpiderMonkey 24 void JS::ProtoKeyToId(JSContext *cx, JSProtoKey key, JS::MutableHandleId idp); // Added in SpiderMonkey 38 Name Type Description cx JSContext * A context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext. v JS::HandleValue The JS value to convert. s JS::HandleSt...
...erMonkey 38 Name Type Description cx JSContext * A context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext. v JS::HandleValue The JS value to convert. s JS::HandleString The JS string to convert. index uint32_t An unsigned integer index of array to convert. chars
JS::TwoByteChars The string to convert. key JSProtoKey The prototype key to convert. idp JS::MutableHandleId Out parameter. On success, *idp receives the converted jsid. Description JS_ValueToId converts a specified JS::Value, v, to a jsid. If v is an integer, *idp receives an integer jsid. Otherwise, if E4X support is enabled and v is an object, *idp receives an object js...