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.

babel-generator: await (a||b) loses parentheses

See original GitHub issue
const a = async () => await (a||b)

becomes

const a=async()=>await a||b;

should be

const a=async()=>await(a||b);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
hzoocommented, Mar 7, 2017

Hey @marcello3d! I’ve moved your issue to the correct repository. Please make sure to keep an eye on the new issue for the latest information.

1reaction
ljharbcommented, Mar 7, 2017

K, looks like it’s confirmed as a bug 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

babel-generator: await (a||b) loses parentheses · Issue #5428
Original issue submitted by @marcello3d in babel/minify#460 const a = async () => await (a||b) becomes const a=async()=>await a||b; ...
Read more >
babel/plugin-proposal-async-generator-functions
Example Usage async function* genAnswers() { var stream = [Promise.resolve(4), Promise.resolve(9), Promise.resolve(12)]; var total = 0; for await (let val ...
Read more >
Babel v6 Changelog - Fossies
babel -generator , babel-plugin-transform-es2015-arrow-functions ... babel-generator. #5453 Keep parentheses for logical expression when in await expression.
Read more >
CoffeeScript
Major new features in CoffeeScript 2 include async functions and JSX. ... This is done via transpilers like Babel, Bublé or Traceur Compiler....
Read more >
Open Source Used In Cisco Meeting Management 2.9
1.44 babel-plugin-transform-es2015-duplicate-keys 6.24.1 ... LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR.
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