You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/10/09 05:45:16 UTC
[GitHub] [netbeans] brettryan opened a new issue, #4757: JavaScript to support "for await of"
brettryan opened a new issue, #4757:
URL: https://github.com/apache/netbeans/issues/4757
### Description
As a javacript developer I would like to have support for [for await...of (ECMAScript specification)](https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html#sec-for-in-and-for-of-statements) so that I can write asynchronous iterators using the `for` keyword.
Taken from the [MDN for await...of](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of) example, the following for await statement uses an asynchronous iterator to produce its output
```javascript
async function* foo() {
yield 1;
yield 2;
}
(async function() {
for await (const num of foo()) {
console.log(num); // expected output: 1
break; // closes iterator, triggers return
}
})();
```
Presently this produces the following error message:
> Expected ( but found await
### Use case/motivation
Working with NodeJS applications such as AWS Lambda works with a lot of async code. Having native support for this within NetBeans IDE provides a better developer experience.
I am willing to contribute with guidance.
### Related issues
_No response_
### Are you willing to submit a pull request?
Yes
### Code of Conduct
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] matthiasblaesing closed issue #4757: JavaScript to support "for await of"
Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing closed issue #4757: JavaScript to support "for await of"
URL: https://github.com/apache/netbeans/issues/4757
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists