PASS: typeof window.decodeURIComponent should be function and is.
PASS: typeof window.encodeURI should be function and is.
PASS: typeof window.encodeURIComponent should be function and is.
-FAIL: typeof window.toString should be function but instead is object
-FAIL: typeof window.toLocaleString should be function but instead is object
-FAIL: typeof window.valueOf should be function but instead is object
-FAIL: typeof window.hasOwnProperty should be function but instead is object
-FAIL: typeof window.propertyIsEnumerable should be function but instead is object
-FAIL: typeof window.isPrototypeOf should be function but instead is object
-FAIL: typeof window.__defineGetter__ should be function but instead is object
-FAIL: typeof window.__defineSetter__ should be function but instead is object
-FAIL: typeof window.__lookupGetter__ should be function but instead is object
-FAIL: typeof window.__lookupSetter__ should be function but instead is object
+PASS: typeof window.toString should be function and is.
+PASS: typeof window.toLocaleString should be function and is.
+PASS: typeof window.valueOf should be function and is.
+PASS: typeof window.hasOwnProperty should be function and is.
+PASS: typeof window.propertyIsEnumerable should be function and is.
+PASS: typeof window.isPrototypeOf should be function and is.
+PASS: typeof window.__defineGetter__ should be function and is.
+PASS: typeof window.__defineSetter__ should be function and is.
+PASS: typeof window.__lookupGetter__ should be function and is.
+PASS: typeof window.__lookupSetter__ should be function and is.
PASS: typeof window.myFunction should be function and is.
PASS: typeof window.myPrototypeFunction should be function and is.
+2008-03-01 Sam Weinig <sam@webkit.org>
+
+ Reviewed by Darin Adler.
+
+ Search the entire prototype chain when doing early prototype lookup in
+ the Window's getOwnPropertySlot method.
+
+ Makes fast/dom/Window/window-function-name-getter-precedence.html pass all tests.
+
+ * bindings/js/kjs_window.cpp:
+ (KJS::Window::getOwnPropertySlot):
+
2008-03-01 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed by Oliver.
// precedence over the index and name getters.
JSValue* proto = prototype();
if (proto->isObject()) {
- if (static_cast<JSObject*>(proto)->getOwnPropertySlot(exec, propertyName, slot)) {
+ if (static_cast<JSObject*>(proto)->getPropertySlot(exec, propertyName, slot)) {
if (!allowsAccessFrom(exec))
slot.setUndefined(this);
return true;