You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x await isn't allowed in non-async function
,----
1 | function foo(){ await Promise.resolve(1) }
: ^^^^^^^
`----
This is the Node.js error
function foo(){ await Promise.resolve(1) }
^^^^^
SyntaxError: await is only valid in async functions and the top level bodies of modules
Since we are rewrapping these error messages I'd like them to be consistent.
I'd remove the x and the blank space at its left and the dashes around the function.
Maybe splitting the message and the body as object properties would be useful
Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the feature
This is the swc error:
This is the Node.js error
Since we are rewrapping these error messages I'd like them to be consistent.
I'd remove the
x
and the blank space at its left and the dashes around the function.Maybe splitting the message and the body as object properties would be useful
Babel plugin or link to the feature description
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: