Skip to content
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

async keyword is removed #3939

Closed
spiffytech opened this issue Nov 16, 2019 · 0 comments
Closed

async keyword is removed #3939

spiffytech opened this issue Nov 16, 2019 · 0 comments
Labels

Comments

@spiffytech
Copy link

Describe the bug
When creating an async method on an object, the compiled output does not have the async keyword. New in 3.13.0.

Logs
Cannot use keyword 'await' outside an async function

To Reproduce
https://svelte.dev/repl/da0f4ec5dc8048fdb2f43b97fe203fa3?version=3.14.1

Expected behavior
async function is compiled to an async output

Information about your Svelte project:
Svelte 3.14.1, Webpack, Mac OS Mojave.

Problem replicated in REPL with Svelte 3.13.0.

Severity
I can downgrade to Svelte 3.12 to work around the issue for now, but I'd have to restructure my code to put the object declaration somewhere else in order to upgrade Svelte.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants