Use the SpiderMonkey C++ Coding Style page on wikimo which is more up to date and the canonical source.
The SpiderMonkey project owners enforce coding conventions pretty strictly during code reviews.
JS_
followed by capitalized "intercaps", e.g. JS_NewObject
.js_
prefix and mixed case, e.g. js_SearchScope
.GetChar
.str_indexOf
.js_
prefix).js
-prefixed: jsdouble
.JS
-prefixed and mixed-case: JSObject
.ALL_CAPS
and underscored, to call out potential side effects, multiple uses of a formal argument, etc.JS_PUBLIC_API()
macro call, to get the right Windows secret type qualifiers in the right places for all build variants.JS_FRIEND_API()
instead.