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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to