Bug 1037718 - Remove JS_GetTypeName. r=jwalden.

This commit is contained in:
Jason Orendorff
2014-08-06 07:17:04 -05:00
parent d25f85f375
commit 684bf9bf97
7 changed files with 8 additions and 29 deletions

View File

@@ -5637,7 +5637,9 @@ js::DefaultValue(JSContext *cx, HandleObject obj, JSType hint, MutableHandleValu
RootedValue val(cx, ObjectValue(*obj));
js_ReportValueError2(cx, JSMSG_CANT_CONVERT_TO, JSDVG_SEARCH_STACK, val, str,
(hint == JSTYPE_VOID) ? "primitive type" : TypeStrings[hint]);
hint == JSTYPE_VOID
? "primitive type"
: hint == JSTYPE_STRING ? "string" : "number");
return false;
}