Deal with non-atom ids. bug 371292, r=brendan

This commit is contained in:
mrbkap%gmail.com 2007-02-22 21:06:29 +00:00
parent cfef5cbbe5
commit 8cf8c1f76a

View File

@ -1811,7 +1811,7 @@ js_CheckRedeclaration(JSContext *cx, JSObject *obj, jsid id, uintN attrs,
: isFunction
? js_function_str
: js_var_str;
name = js_AtomToPrintableString(cx, JSID_TO_ATOM(id));
name = js_ValueToPrintableString(cx, ID_TO_VALUE(id));
if (!name)
goto bad;
return JS_ReportErrorFlagsAndNumber(cx, report,