Re:Show HN: Introducing Harp – A static web server with buil...
by taralx on Saturday October 05, 2013 @04:37PM
(#6501979)
This actually can be done safely with Object.defineProperty, using non-enumerable properties.
[ Parent
| on HN ]
Re:Show HN: Introducing Harp – A static web server with buil...
by barrkel on Sunday October 06, 2013 @09:57AM
(#6504091)
That doesn't work in IE8 (for non-DOM objects).
IE8 is the last version of IE for WinXP.
Re:Show HN: Introducing Harp – A static web server with buil...
by aaronem on Sunday October 06, 2013 @05:27PM
(#6505513)
If you have to support IE 8, you probably shouldn't extend prototypes without serious thought, especially in a legacy codebase, because the interpreter support isn't there to do it right.
On the other hand, Windows XP is barely six months shy of EOL, and IE 8 currently has something like 4% share. Now would seem to be an excellent time to start dropping support for IE 8. Such support is never going to gain you more users, and many other browsers run on Windows XP.
"Don't use Object.defineProperty because a dying browser on a dying platform doesn't support it" strikes me as a rather weak argument. I mean, there are still people out there using IE 6, God help them. Why not shoot as low as we can?