Bug 1134955. Be more careful with how we stringify property ids for error message reporting. r=jorendorff
This commit is contained in:
@@ -411,7 +411,8 @@ js::Throw(JSContext *cx, jsid id, unsigned errorNumber)
|
||||
{
|
||||
MOZ_ASSERT(js_ErrorFormatString[errorNumber].argCount == 1);
|
||||
|
||||
JSString *idstr = IdToString(cx, id);
|
||||
RootedValue idVal(cx, IdToValue(id));
|
||||
JSString *idstr = ValueToSource(cx, idVal);
|
||||
if (!idstr)
|
||||
return false;
|
||||
JSAutoByteString bytes(cx, idstr);
|
||||
|
||||
Reference in New Issue
Block a user