headbank opened a new issue, #7408:
URL: https://github.com/apache/netbeans/issues/7408

   ### Apache NetBeans version
   
   Apache NetBeans 21
   
   ### What happened
   
   It's now possible to use `await` in top-level code in JavaScript module 
context (which may be a normal JS file loaded via dynamic `include()` call). 
However NetBeans's Javascript parser interprets such a statement as an error.
   
   ### Language / Project Type / NetBeans Component
   
   Editor Javascript parser (PHP project)
   
   ### How to reproduce
   
   1. Create a file with .js extension
   2. Write a top-level `await` statement in the file, e.g.
   ```
   await Promise.resolve(1);
   ```
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Gentoo Linux amd64
   
   ### JDK
   
   openjdk-21.0.3_p9 Prebuilt Java JDK binaries provided by Eclipse Temurin
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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