Bug 678998 - Rename IsFunctionQName to GetLocalNameFromFunctionQName and make it infallible, now that QName's localName slot stores an atom and conversion to jsid can be infallible. r=luke
This commit is contained in:
@@ -774,9 +774,7 @@ js_InternNonIntElementIdSlow(JSContext *cx, JSObject *obj, const Value &idval,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!js_IsFunctionQName(cx, &idval.toObject(), idp))
|
||||
return JS_FALSE;
|
||||
if (!JSID_IS_VOID(*idp))
|
||||
if (js_GetLocalNameFromFunctionQName(&idval.toObject(), idp, cx))
|
||||
return true;
|
||||
|
||||
return js_ValueToStringId(cx, idval, idp);
|
||||
@@ -794,9 +792,7 @@ js_InternNonIntElementIdSlow(JSContext *cx, JSObject *obj, const Value &idval,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!js_IsFunctionQName(cx, &idval.toObject(), idp))
|
||||
return JS_FALSE;
|
||||
if (!JSID_IS_VOID(*idp)) {
|
||||
if (js_GetLocalNameFromFunctionQName(&idval.toObject(), idp, cx)) {
|
||||
*vp = IdToValue(*idp);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user