Re:JavaScript is not suitable for large web apps
by dyselon on Thursday June 14, 2012 @08:15PM
(#4114283)
Just genuinely curious, as I assume it's some bit of Javascript weirdness I don't know, but why the tostring rigmarole over "obj instanceof Array"
[ Parent
| on HN ]
Re:JavaScript is not suitable for large web apps
by prodigal_erik on Friday June 15, 2012 @01:37AM
(#4115212)
That's unreliable for client-side work because each frame has its own Array.prototype object which disavows instances that were created by code from different frames. It's a lot like Java classloaders, where if you aren't careful you can end up with several distinct and incompatible classes with identical names and (often) bytecode.