matthiasblaesing commented on issue #7408: URL: https://github.com/apache/netbeans/issues/7408#issuecomment-2140038085
> Thanks, the dev build improves the situation but it is still incomplete as it makes the validity of the `await` statement dependent on there also being an `export` statement in the file, which while recommended practice, is not a language requirement. The language requirement is, that top level await is allowed for modules. The NB implementation currently guesses whether the file should be parsed as a module based on the import and export keywords. A work around might be to add support for the `mjs` extension and let these file be parsed as modules by default. What do you think? But before doing this: Is there a real world example for JS modules without export/import? -- 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
