Implement cmp for string-on-string.

Add < and > tests for strings.
Condition the top-level truthies test on a synthetic test name, so it can be
excluded.
This commit is contained in:
2008-08-09 21:50:52 -04:00
parent c03c77b288
commit ef23c36278
4 changed files with 84 additions and 46 deletions

View File

@@ -247,6 +247,12 @@ builtin_EqualStrings(JSString* str1, JSString* str2)
return js_EqualStrings(str1, str2);
}
jsint FASTCALL
builtin_CompareStrings(JSString* str1, JSString* str2)
{
return js_CompareStrings(str1, str2);
}
jsdouble FASTCALL
builtin_StringToNumber(JSContext* cx, JSString* str)
{