From: Gabriel Ivăncescu gabrielopcode@gmail.com
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/jscript/dispex.c | 7 +++++++ dlls/mshtml/tests/es5.js | 1 - 2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/jscript/dispex.c b/dlls/jscript/dispex.c index b1af74abc79..058945d1a5f 100644 --- a/dlls/jscript/dispex.c +++ b/dlls/jscript/dispex.c @@ -750,6 +750,13 @@ static HRESULT fill_props(jsdisp_t *obj) { dispex_prop_t *prop; HRESULT hres; + DWORD i; + + for(i = 0; i < obj->builtin_info->props_cnt; i++) { + hres = find_prop_name(obj, string_hash(obj->builtin_info->props[i].name), obj->builtin_info->props[i].name, FALSE, NULL, &prop); + if(FAILED(hres)) + return hres; + }
if(obj->builtin_info->next_prop) { struct property_info desc; diff --git a/dlls/mshtml/tests/es5.js b/dlls/mshtml/tests/es5.js index 2f62f051d33..1781df69ee3 100644 --- a/dlls/mshtml/tests/es5.js +++ b/dlls/mshtml/tests/es5.js @@ -1356,7 +1356,6 @@ sync_test("getOwnPropertyNames", function() { ok(names === "defined,test", "names = " + names);
names = Object.getOwnPropertyNames([]).sort().join(); - todo_wine. ok(names === "length", "names = " + names);
ok(Object.getOwnPropertyNames.length === 1, "Object.getOwnPropertyNames.length = " + Object.getOwnPropertyNames.length);