Bug 904723, part 1 - Add new IsConstructor intrinsic for self-hosting. r=till.

This also renames js_IsCallable to js::IsCallable and does some related light
cleaning work.
This commit is contained in:
Jason Orendorff
2014-06-06 11:15:21 -04:00
parent 8836365bf4
commit cb432bf614
14 changed files with 58 additions and 48 deletions

View File

@@ -2479,7 +2479,7 @@ date_toJSON(JSContext *cx, unsigned argc, Value *vp)
return false;
/* Step 5. */
if (!js_IsCallable(toISO)) {
if (!IsCallable(toISO)) {
JS_ReportErrorFlagsAndNumber(cx, JSREPORT_ERROR, js_GetErrorMessage, nullptr,
JSMSG_BAD_TOISOSTRING_PROP);
return false;