Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upI got an reserved word error for await statements #884
Comments
This comment has been minimized.
This comment has been minimized.
|
Hello! I think this is working normally. The error isn't very informative, but the Just for kicks, I checked out the v8.6.0 tag and tried another sample file with different syntax, and it worked! :) ~/code/standard v8.6.0*
🕦 ❯ cat test.js/* global foo */
async function yo () {
let x = await foo()
return x
}
module.exports = yo~/code/standard v8.6.0*
🕦 ❯ node bin/cmd.js test.js
🕦 ❯ # no error returned!I'm going to close this issue, but please feel free to continue the conversation. |
Flet
closed this
Jun 8, 2017
This comment has been minimized.
This comment has been minimized.
brianmhunt
commented
Sep 13, 2017
•
|
I think the issue here is that the message is misleading / not as informative as it could be . It would be better (and properly informative) if it said "The 'await' keyword can only be used inside functions marked 'async'." |
This comment has been minimized.
This comment has been minimized.
|
I agree @brianmhunt, however the error originates from deep inside |
rbecheras commentedMay 11, 2017
I posted an issue on atom
linter-js-standardplugin, but I guess it is most likely an issue withstandarditself:ricardofbarros/linter-js-standard#185
But I use
linter-js-standard v3.9.1:Which use
standard v8.6.0as dependencyAnd
standardseems supportasync/awaitsincestandard v8.3.0(> v8.6.0)What's wrong ?