зеркало из https://github.com/mozilla/pjs.git
Bug 720759 - Delete the fallible EqualStrings signature when both provided strings are linear, so that callers are required to use the faster, infallible linear-strings overload. r=Ms2ger
--HG-- extra : rebase_source : 2794602c5fa7b1ee5a2d891b7ef0696985ceccd4
This commit is contained in:
Родитель
27cb6d03bc
Коммит
75cffdbd4b
|
@ -188,6 +188,10 @@ namespace js {
|
|||
extern bool
|
||||
EqualStrings(JSContext *cx, JSString *str1, JSString *str2, bool *result);
|
||||
|
||||
/* Use the infallible method instead! */
|
||||
extern bool
|
||||
EqualStrings(JSContext *cx, JSLinearString *str1, JSLinearString *str2, bool *result) MOZ_DELETE;
|
||||
|
||||
/* EqualStrings is infallible on linear strings. */
|
||||
extern bool
|
||||
EqualStrings(JSLinearString *str1, JSLinearString *str2);
|
||||
|
|
Загрузка…
Ссылка в новой задаче