-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] async call in constructor #4632
Labels
Comments
just realized the electron environment i'm forced to deal with is based on chrome 53 and node 6.5 which didn't have asynch/await yet |
see what the second snippet compiles to |
Second snippet runs for me in Chrome, as long as |
then i was right with the environment just being outdated, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is my first time trying to use await/promises
in a class constructor i put this:
since that gave me
error: Class constructor may not be async
when compiling i tried to work around it by wrapping it withdo =>
:which throws at runtime with
Uncaught SyntaxError: Unexpected token (
afterasync
i get the same result when adding a space after
async
so my question is, what am i doing wrong?
The text was updated successfully, but these errors were encountered: