jscript: Fixed Number's function lengths.
This commit is contained in:
parent
67f14b7633
commit
c2d2b9f559
|
@ -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}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue