bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan

This commit is contained in:
Igor Bukanov
2009-10-27 13:26:57 +03:00
parent 7045f5aaec
commit 90328eab55
13 changed files with 119 additions and 136 deletions

View File

@@ -5578,7 +5578,7 @@ xml_childIndex(JSContext *cx, uintN argc, jsval *vp)
NON_LIST_XML_METHOD_PROLOG;
parent = xml->parent;
if (!parent || xml->xml_class == JSXML_CLASS_ATTRIBUTE) {
*vp = DOUBLE_TO_JSVAL(cx->runtime->jsNaN);
*vp = cx->runtime->NaNValue;
return JS_TRUE;
}
for (i = 0, n = JSXML_LENGTH(parent); i < n; i++) {