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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user