Bug 1037718 - Remove JS_GetTypeName. r=jwalden.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user