You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mozilla-dev-d...@lists.mozilla.org
Hi,
I'm running through the devtools source and see a lot of function declarations like this:
function*() {...}
Can you tell me what this syntax is all about?
Nicolas B. Pierron
unread,
Jun 19, 2015, 11:18:25 AM6/19/15
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mozilla-dev-d...@lists.mozilla.org
These functions are generators [1][2]. To make it simple, you can interupt
them and resume them on yield statements. Which is quite useful when
combined with for-of loops.
> Hi,
> I'm running through the devtools source and see a lot of function
> declarations like this:
> function*() {...}
>
> Can you tell me what this syntax is all about?