inline PreferredPrimitiveType toPreferredPrimitiveType(ExecState* exec, JSValue value)
{
if (!value.isString()) {
- throwTypeError(exec, "Primitive hint is not a string.");
+ throwTypeError(exec, ASCIILiteral("Primitive hint is not a string."));
return NoPreference;
}
if (WTF::equal(hintString, "string"))
return PreferString;
- throwTypeError(exec, "Expected primitive hint to match one of 'default', 'number', 'string'.");
+ throwTypeError(exec, ASCIILiteral("Expected primitive hint to match one of 'default', 'number', 'string'."));
return NoPreference;
}