Bug 707383 - Rename ValueTo{ECMA,}{Ui,I}nt32 so that To{Ui,I}nt32 is the ECMA spec method and NonstandardTo{Ui,I}nt32 is the non-standard JSAPI method functionality. r=luke

This commit is contained in:
Jeff Walden
2011-12-05 17:10:02 -05:00
parent 477d66175a
commit 12997e2396
14 changed files with 54 additions and 57 deletions

View File

@@ -173,7 +173,7 @@ js_GetLengthProperty(JSContext *cx, JSObject *obj, jsuint *lengthp)
}
JS_STATIC_ASSERT(sizeof(jsuint) == sizeof(uint32_t));
return ValueToECMAUint32(cx, tvr.value(), (uint32_t *)lengthp);
return ToUint32(cx, tvr.value(), (uint32_t *)lengthp);
}
namespace js {
@@ -600,7 +600,7 @@ array_length_setter(JSContext *cx, JSObject *obj, jsid id, JSBool strict, Value
}
uint32 newlen;
if (!ValueToECMAUint32(cx, *vp, &newlen))
if (!ToUint32(cx, *vp, &newlen))
return false;
jsdouble d;