Bug 836301 - Assert against JSID_VOID in JSID wrapping. r=mrbkap

Luke explained to me that it should never get there.
This commit is contained in:
Bobby Holley 2013-02-25 13:54:17 -08:00
parent 48eb0c311a
commit 43540aa59a

View File

@ -432,6 +432,7 @@ JSCompartment::wrap(JSContext *cx, JSObject **objp, JSObject *existingArg)
bool
JSCompartment::wrapId(JSContext *cx, jsid *idp)
{
MOZ_ASSERT(*idp != JSID_VOID, "JSID_VOID is an out-of-band sentinel value");
if (JSID_IS_INT(*idp))
return true;
RootedValue value(cx, IdToValue(*idp));