Bug 698495 part 3. Expose IndexToId to API consumers. r=waldo

This commit is contained in:
Boris Zbarsky 2011-11-04 12:19:07 -04:00
parent 23e72ba66d
commit bc9acd044b
2 changed files with 12 additions and 0 deletions

View File

@ -6296,3 +6296,9 @@ BOOL WINAPI DllMain (HINSTANCE hDLL, DWORD dwReason, LPVOID lpReserved)
}
#endif
JS_PUBLIC_API(JSBool)
JS_IndexToId(JSContext *cx, uint32 index, jsid *id)
{
return IndexToId(cx, index, id);
}

View File

@ -4893,6 +4893,12 @@ extern JS_PUBLIC_API(void)
JS_ScheduleGC(JSContext *cx, uint32 count, JSBool compartment);
#endif
/*
* Convert a uint32 index into a jsid.
*/
extern JS_PUBLIC_API(JSBool)
JS_IndexToId(JSContext *cx, uint32 index, jsid *id);
JS_END_EXTERN_C
#endif /* jsapi_h___ */