Andrew Nguyen : jscript: Fix the lexicographical order of the String class properties array.
Alexandre Julliard
julliard at winehq.org
Wed Dec 10 07:41:56 CST 2008
Module: wine
Branch: master
Commit: f2388d92690dbaee8c87e873bb169f4ce68bcbdf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f2388d92690dbaee8c87e873bb169f4ce68bcbdf
Author: Andrew Nguyen <arethusa26 at gmail.com>
Date: Wed Dec 10 03:06:21 2008 -0600
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 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/string.c b/dlls/jscript/string.c
index 5e93fa2..6dff58e 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},
More information about the wine-cvs
mailing list