mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
Deal with non-atom ids. bug 371292, r=brendan
This commit is contained in:
parent
cfef5cbbe5
commit
8cf8c1f76a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user