Commit c2d2b9f5 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

jscript: Fixed Number's function lengths.

parent 67f14b76
......@@ -234,11 +234,11 @@ static HRESULT Number_value(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAM
}
static const builtin_prop_t Number_props[] = {
{toExponentialW, Number_toExponential, PROPF_METHOD},
{toExponentialW, Number_toExponential, PROPF_METHOD|1},
{toFixedW, Number_toFixed, PROPF_METHOD},
{toLocaleStringW, Number_toLocaleString, PROPF_METHOD},
{toPrecisionW, Number_toPrecision, PROPF_METHOD},
{toStringW, Number_toString, PROPF_METHOD},
{toPrecisionW, Number_toPrecision, PROPF_METHOD|1},
{toStringW, Number_toString, PROPF_METHOD|1},
{valueOfW, Number_valueOf, PROPF_METHOD}
};
......
......@@ -1410,4 +1410,13 @@ testFunctions(Boolean.prototype, [
["toString", 0]
]);
testFunctions(Number.prototype, [
["valueOf", 0],
["toString", 1],
["toExponential", 1],
["toLocaleString", 0],
["toPrecision", 1]
]);
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