jscript: Fix the lexicographical order of the String class properties array.
The find_builtin_prop internal routine in dispex.c implements a binary search with the requirement that a class properties array be in ascending order, so this fix allows String's properties array to satisfy this requirement and allows the tests for String.sub() to pass.
This commit is contained in:
parent
a6bdc47152
commit
f2388d9269
|
@ -1261,9 +1261,9 @@ static const builtin_prop_t String_props[] = {
|
|||
{smallW, String_small, PROPF_METHOD},
|
||||
{splitW, String_split, PROPF_METHOD},
|
||||
{strikeW, String_strike, PROPF_METHOD},
|
||||
{substringW, String_substring, PROPF_METHOD},
|
||||
{substrW, String_substr, PROPF_METHOD},
|
||||
{subW, String_sub, PROPF_METHOD},
|
||||
{substrW, String_substr, PROPF_METHOD},
|
||||
{substringW, String_substring, PROPF_METHOD},
|
||||
{supW, String_sup, PROPF_METHOD},
|
||||
{toLocaleLowerCaseW, String_toLocaleLowerCase, PROPF_METHOD},
|
||||
{toLocaleUpperCaseW, String_toLocaleUpperCase, PROPF_METHOD},
|
||||
|
|
Loading…
Reference in New Issue