This article covers features introduced in SpiderMonkey 38
Determine if the given JSPropertySpec::name or JSFunctionSpec::name value equals the given jsid.
Syntax
bool JS::PropertySpecNameEqualsId(const char *name, JS::HandleId id);
| Name | Type | Description | 
|---|---|---|
| name | const char * | JSPropertySpec::nameorJSFunctionSpec::name. | 
| id | JS::HandleId | A jsidto compare with. | 
Description
JS::PropertySpecNameEqualsId determines if the given JSPropertySpec::name or JSFunctionSpec::name value equals the given jsid, and returns true if so.