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

jscript: Fixed Object's function lengths.

parent ca729836
......@@ -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}
......
......@@ -1543,4 +1543,13 @@ testFunctions(Math, [
["tan", 1]
]);
testFunctions(Object.prototype, [
["hasOwnProperty", 1],
["isPrototypeOf", 1],
["propertyIsEnumerable", 1],
["toLocaleString", 0],
["toString", 0],
["valueOf", 0]
]);
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