Bug 655192 - Update the initSharingEmptyShape comment to be more precise about what it requires of the provided proto, to avoid mentioning js_InitClass. r=jorendorff

--HG--
extra : rebase_source : 7008073db608db3f83ee31f9a7798f67ccc8d4b5
This commit is contained in:
Jeff Walden 2011-05-09 13:06:52 -07:00
parent 5911c8d372
commit 78a353366d

View File

@ -1043,8 +1043,8 @@ struct JSObject : js::gc::Cell {
JS_ALWAYS_INLINE void finalize(JSContext *cx);
/*
* Like init, but also initializes map. The catch: proto must be the result
* of a call to js_InitClass(...clasp, ...).
* Like init, but also initializes map. proto must have an empty shape
* created for it via proto->getEmptyShape.
*/
inline bool initSharingEmptyShape(JSContext *cx,
js::Class *clasp,