This article covers features introduced in SpiderMonkey 38
Convert a JSProtoKey to JS ID.
Syntax
void JS::ProtoKeyToId(JSContext *cx, JSProtoKey key, JS::MutableHandleId idp);
| Name | Type | Description | 
|---|---|---|
| cx | JSContext * | Pointer to a JS context from which to derive runtime information. Requires request. In a JS_THREADSAFEbuild, the caller must be in a request on thisJSContext. | 
| key | JSProtoKey | The prototype key to convert. | 
| vp | JS::MutableHandleId | Out parameter. *idpreceives the converted id. | 
Description
JS::ProtoKeyToId converts a specified JS prototype key key, to a JS ID. JS stores a ::ProtoKeyToIdjsid to *idp.