jscript: Fixed Number's function lengths.

This commit is contained in:
Piotr Caban 2009-08-17 12:11:51 +02:00 committed by Alexandre Julliard
parent 67f14b7633
commit c2d2b9f559
2 changed files with 12 additions and 3 deletions

View File

@ -234,11 +234,11 @@ static HRESULT Number_value(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAM
} }
static const builtin_prop_t Number_props[] = { static const builtin_prop_t Number_props[] = {
{toExponentialW, Number_toExponential, PROPF_METHOD}, {toExponentialW, Number_toExponential, PROPF_METHOD|1},
{toFixedW, Number_toFixed, PROPF_METHOD}, {toFixedW, Number_toFixed, PROPF_METHOD},
{toLocaleStringW, Number_toLocaleString, PROPF_METHOD}, {toLocaleStringW, Number_toLocaleString, PROPF_METHOD},
{toPrecisionW, Number_toPrecision, PROPF_METHOD}, {toPrecisionW, Number_toPrecision, PROPF_METHOD|1},
{toStringW, Number_toString, PROPF_METHOD}, {toStringW, Number_toString, PROPF_METHOD|1},
{valueOfW, Number_valueOf, PROPF_METHOD} {valueOfW, Number_valueOf, PROPF_METHOD}
}; };

View File

@ -1410,4 +1410,13 @@ testFunctions(Boolean.prototype, [
["toString", 0] ["toString", 0]
]); ]);
testFunctions(Number.prototype, [
["valueOf", 0],
["toString", 1],
["toExponential", 1],
["toLocaleString", 0],
["toPrecision", 1]
]);
reportSuccess(); reportSuccess();