@littlecalculist @rwaldron Properties defined in WebIDL live on the proto, always.
@littlecalculist @rwaldron undefined in Gecko, "function alert() { [native code] }" in WebKit and Opera, over here.
-
-
-
@littlecalculist@bz_moz right, that approach is no good. I've been auto-substituting code in my head for this entire conversation (no var) - 8 more replies
New conversation -
-
-
@bz_moz Since when? That is a bad bug. JS shell > var parseInt; > parseInt function parseInt() {[native code]}@littlecalculist@rwaldron -
@BrendanEich@bz_moz@rwaldron Not a bug. Works for parseInt b/c it's an own property. Fails for alert b/c it's on Window.prototype. - 7 more replies
New conversation -
-
-
@bz_moz@littlecalculist Ah, I see what you're saying now... I was doing "window.alert = window.alert || window.fakeAlert". (not var)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.