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::name or JSFunctionSpec::name . |
id |
JS::HandleId |
A jsid to compare with. |
Description
JS::PropertySpecNameEqualsId
determines if the given JSPropertySpec::name
or JSFunctionSpec::name
value equals the given jsid
, and returns true
if so.