From f2388d92690dbaee8c87e873bb169f4ce68bcbdf Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Wed, 10 Dec 2008 03:06:21 -0600 Subject: [PATCH] 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. --- dlls/jscript/string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/string.c b/dlls/jscript/string.c index 5e93fa275d..6dff58ecf1 100644 --- a/dlls/jscript/string.c +++ b/dlls/jscript/string.c @@ -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}, -- 2.33.8