Help us test MDN's new front-end: https://discourse.mozilla.org/t/help-us-test-mdns-new-react-front-end-beta/42593

JS::PropertySpecNameEqualsId

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.

See Also

Document Tags and Contributors

Contributors to this page: mdnwebdocs-bot, kscarfone, arai
Last updated by: mdnwebdocs-bot,