diff --git a/dlls/jscript/object.c b/dlls/jscript/object.c index f5ce564f43e..e8624bd79aa 100644 --- a/dlls/jscript/object.c +++ b/dlls/jscript/object.c @@ -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} diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index d4c4cabebae..8b4316f39cb 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -1543,4 +1543,13 @@ testFunctions(Math, [ ["tan", 1] ]); +testFunctions(Object.prototype, [ + ["hasOwnProperty", 1], + ["isPrototypeOf", 1], + ["propertyIsEnumerable", 1], + ["toLocaleString", 0], + ["toString", 0], + ["valueOf", 0] + ]); + reportSuccess();