jscript: Fixed Object's function lengths.
This commit is contained in:
parent
ca72983664
commit
c745826e5d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue