jscript: Fixed Object's function lengths.

This commit is contained in:
Piotr Caban 2009-08-17 12:13:20 +02:00 committed by Alexandre Julliard
parent ca72983664
commit c745826e5d
2 changed files with 12 additions and 3 deletions

View File

@ -145,9 +145,9 @@ static void Object_destructor(DispatchEx *dispex)
}
static const builtin_prop_t Object_props[] = {
{hasOwnPropertyW, Object_hasOwnProperty, PROPF_METHOD},
{isPrototypeOfW, Object_isPrototypeOf, PROPF_METHOD},
{propertyIsEnumerableW, Object_propertyIsEnumerable, PROPF_METHOD},
{hasOwnPropertyW, Object_hasOwnProperty, PROPF_METHOD|1},
{isPrototypeOfW, Object_isPrototypeOf, PROPF_METHOD|1},
{propertyIsEnumerableW, Object_propertyIsEnumerable, PROPF_METHOD|1},
{toLocaleStringW, Object_toLocaleString, PROPF_METHOD},
{toStringW, Object_toString, PROPF_METHOD},
{valueOfW, Object_valueOf, PROPF_METHOD}

View File

@ -1543,4 +1543,13 @@ testFunctions(Math, [
["tan", 1]
]);
testFunctions(Object.prototype, [
["hasOwnProperty", 1],
["isPrototypeOf", 1],
["propertyIsEnumerable", 1],
["toLocaleString", 0],
["toString", 0],
["valueOf", 0]
]);
reportSuccess();