Re:Advanced Javascript tips and tricks
by yid on Tuesday July 05, 2011 @02:46AM
(#2728903)
Wow, I'm seriously overjoyed to discover the "yield" operator, which I did not know existed (it barely shows up anywhere!). No more hackishly using window.setTimeout() to yield in JS pseudo-thread simulations!
[ Parent
| on HN ]
Just note the small print that yield is JS 1.7
Firefox 2 was the first to have JS 1.7 but I dunno if any version of IE has yield, maybe IE9 ?
Javascript 1.x where x > 5 are proprietary extensions of Mozilla.
Some of those extensions (e.g. Array Extras) trickled into the wider language, but as far as I know most of them (including let and generators) are confined to Gecko-based browsers still.
No version of IE or Safari or Chrome has yield.