-
eric@webkit.org authored
Reviewed by Darin Adler. Object.getOwnPropertyDescriptor(window) returns descriptors for properties in the prototype chain https://bugs.webkit.org/show_bug.cgi?id=33948 Even though prototype properties are proxied by JSDOMWindow::getOwnPropertySlot(), that proxying should not be performed by JSDOMWindow::getOwnPropertyDescriptor(). This makes getOwnPropertyDescriptor() consistent with getOwnPropertyNames(). Test: fast/dom/Window/window-property-descriptors.html * bindings/js/JSDOMWindowCustom.cpp: (WebCore::JSDOMWindow::getOwnPropertyDescriptor): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53706 268f45cc-cd09-0410-ab3c-d52691b4dbfc
30dcdbbe