Can I use Javascript 1.7+ iterators and generators inside a Firefox web desktop?

Or how can I tell Firefox to parse a web worker extension using mimetype application/javascript;version=1.7 ?

Firebug 1.7a9 in Firefox 4 Beta 9 gives:

 missing ; before statement [Break On This Error] yield k; 

which is said when it does not recognize the yield generator keyword in the regular script tag.

+4
source share
1 answer

You need to serve the file with this HTTP header. What server are you working on?

+1
source

Source: https://habr.com/ru/post/1337697/


All Articles