Built-in functions in Safari are not Function objects, and not even Object objects. They appear to be of type "function" instead of type "object". This makes it impossible to use .call() and .apply() on them.
(ppknote: Safari 3 gives window.alert instanceof Object: true
. 1.3 doesn't, though.)
Test page Workaround is not included
Reported by: Mihail Milushev.
Safari | Reported on 17 August 2007.
This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.
Search reports by browser:
1 Posted by BARTdG on 3 December 2007 | Permalink
Both Safari and the latest nightly build of Webkit on Leopard alert:
window.alert:
function alert() {
[native code]
}
window.alert instanceof Object: true
window.alert.prototype: undefined