question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support ES7 async/await proposal

See original GitHub issue

I’m talking about https://github.com/lukehoban/ecmascript-asyncawait. It’s an accepted proposal for ES7.

Because https://github.com/6to5/6to5 can already compile these, it would be nice to have support for it behind a flag.

I wouldn’t file issues for other ES7 features yet but this one is a game changer. It spoiled me as a C# developer a few years ago and I can’t wait to start using it again.

(Yes I understand this can be done with yield. Bear with me!)

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:36 (21 by maintainers)

github_iconTop GitHub Comments

90reactions
platinumazurecommented, Oct 9, 2016

@MarkHerhold You need to set ecmaVersion to 8 under parserOptions in configuration, or do the equivalent in CLI.

Configuration (JSON):

{
    "parserOptions": {
        "ecmaVersion": 8 // or 2017
    },
    "rules": {}
    }
}

Via CLI:

eslint --parser-options="ecmaVersion:8"
35reactions
ljharbcommented, Oct 9, 2016

@MarkHerhold set your ecmaVersion to 2017.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add ES7 Async/Await Support for your Webapp in 3 Easy Steps
Step by step guide to add async/await in your build flow.
Read more >
ES7 async functions - JakeArchibald.com
With async functions (full proposal), you can await on a promise. This halts the function in a non-blocking way, waits for the promise...
Read more >
Taming the asynchronous beast with ES7 - PouchDB
ES7 gives us a new kind of function, the async function . Inside of an async function , we have a new keyword,...
Read more >
How can I use ES2016/ES7 proposal for async/await in my ...
You need to have a separate entry point that loads the polyfill, and then the main application file. gulpfile.babel-entry.js
Read more >
ES7 Async Await in JavaScript - Chris Ng - Svbtle
This is a blog post on the async and await functionality coming to JavaScript. ... actually transpiled again by Babel to backward support...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found