Commit 3da1773c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

jscript: Fixed String's function lengths.

parent c2d2b9f5
...@@ -1543,32 +1543,32 @@ static void String_destructor(DispatchEx *dispex) ...@@ -1543,32 +1543,32 @@ static void String_destructor(DispatchEx *dispex)
} }
static const builtin_prop_t String_props[] = { static const builtin_prop_t String_props[] = {
{anchorW, String_anchor, PROPF_METHOD}, {anchorW, String_anchor, PROPF_METHOD|1},
{bigW, String_big, PROPF_METHOD}, {bigW, String_big, PROPF_METHOD},
{blinkW, String_blink, PROPF_METHOD}, {blinkW, String_blink, PROPF_METHOD},
{boldW, String_bold, PROPF_METHOD}, {boldW, String_bold, PROPF_METHOD},
{charAtW, String_charAt, PROPF_METHOD}, {charAtW, String_charAt, PROPF_METHOD|1},
{charCodeAtW, String_charCodeAt, PROPF_METHOD}, {charCodeAtW, String_charCodeAt, PROPF_METHOD|1},
{concatW, String_concat, PROPF_METHOD}, {concatW, String_concat, PROPF_METHOD|1},
{fixedW, String_fixed, PROPF_METHOD}, {fixedW, String_fixed, PROPF_METHOD},
{fontcolorW, String_fontcolor, PROPF_METHOD}, {fontcolorW, String_fontcolor, PROPF_METHOD|1},
{fontsizeW, String_fontsize, PROPF_METHOD}, {fontsizeW, String_fontsize, PROPF_METHOD|1},
{indexOfW, String_indexOf, PROPF_METHOD}, {indexOfW, String_indexOf, PROPF_METHOD|2},
{italicsW, String_italics, PROPF_METHOD}, {italicsW, String_italics, PROPF_METHOD},
{lastIndexOfW, String_lastIndexOf, PROPF_METHOD}, {lastIndexOfW, String_lastIndexOf, PROPF_METHOD|2},
{lengthW, String_length, 0}, {lengthW, String_length, 0},
{linkW, String_link, PROPF_METHOD}, {linkW, String_link, PROPF_METHOD|1},
{localeCompareW, String_localeCompare, PROPF_METHOD}, {localeCompareW, String_localeCompare, PROPF_METHOD|1},
{matchW, String_match, PROPF_METHOD}, {matchW, String_match, PROPF_METHOD|1},
{replaceW, String_replace, PROPF_METHOD}, {replaceW, String_replace, PROPF_METHOD|1},
{searchW, String_search, PROPF_METHOD}, {searchW, String_search, PROPF_METHOD},
{sliceW, String_slice, PROPF_METHOD}, {sliceW, String_slice, PROPF_METHOD},
{smallW, String_small, PROPF_METHOD}, {smallW, String_small, PROPF_METHOD},
{splitW, String_split, PROPF_METHOD}, {splitW, String_split, PROPF_METHOD|2},
{strikeW, String_strike, PROPF_METHOD}, {strikeW, String_strike, PROPF_METHOD},
{subW, String_sub, PROPF_METHOD}, {subW, String_sub, PROPF_METHOD},
{substrW, String_substr, PROPF_METHOD}, {substrW, String_substr, PROPF_METHOD|2},
{substringW, String_substring, PROPF_METHOD}, {substringW, String_substring, PROPF_METHOD|2},
{supW, String_sup, PROPF_METHOD}, {supW, String_sup, PROPF_METHOD},
{toLocaleLowerCaseW, String_toLocaleLowerCase, PROPF_METHOD}, {toLocaleLowerCaseW, String_toLocaleLowerCase, PROPF_METHOD},
{toLocaleUpperCaseW, String_toLocaleUpperCase, PROPF_METHOD}, {toLocaleUpperCaseW, String_toLocaleUpperCase, PROPF_METHOD},
......
...@@ -1410,7 +1410,6 @@ testFunctions(Boolean.prototype, [ ...@@ -1410,7 +1410,6 @@ testFunctions(Boolean.prototype, [
["toString", 0] ["toString", 0]
]); ]);
testFunctions(Number.prototype, [ testFunctions(Number.prototype, [
["valueOf", 0], ["valueOf", 0],
["toString", 1], ["toString", 1],
...@@ -1419,4 +1418,39 @@ testFunctions(Number.prototype, [ ...@@ -1419,4 +1418,39 @@ testFunctions(Number.prototype, [
["toPrecision", 1] ["toPrecision", 1]
]); ]);
testFunctions(String.prototype, [
["valueOf", 0],
["toString", 0],
["anchor", 1],
["big", 0],
["blink", 0],
["bold", 0],
["charAt", 1],
["charCodeAt", 1],
["concat", 1],
["fixed", 0],
["fontcolor", 1],
["fontsize", 1],
["indexOf", 2],
["italics", 0],
["lastIndexOf", 2],
["link", 1],
["localeCompare", 1],
["match", 1],
["replace", 1],
["search", 0],
["slice", 0],
["small", 0],
["split", 2],
["strike", 0],
["sub", 0],
["substr", 2],
["substring", 2],
["sup", 0],
["toLocaleLowerCase", 0],
["toLocaleUpperCase", 0],
["toLowerCase", 0],
["toUpperCase", 0]
]);
reportSuccess(); reportSuccess();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment