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

fix(compiler-sfc): async transformer doesn't correctly detect need for semicolon in block #5808 #5810

Closed
wants to merge 2 commits into from

Conversation

liulinboyi
Copy link
Member

@liulinboyi liulinboyi commented Apr 26, 2022

fix(compiler-sfc): async transformer doesn't correctly detect need for semicolon in block

fix #5808

preview link

<script setup>
if (ok) {
  let a = 'foo'
  await 0 + await 1
  await 2
} else if (a) {
  await 10
  if (b) {
    await 0 + await 1
  } else {
    let a = 'foo'
    await 2
  }
  if (b) {
    await 3
    await 4
  }
} else {
  await 5
}
</script>

<template>
</template>

preview link

<script setup>
if (ok) {
  while (d) {
    await 5
  }
  while (d) {
    await 5
    await 6
    if (c) {
      let f = 10
      10 + await 7
    } else {
      await 8
      await 9
    }
  }
}
</script>

<template>
</template>

preview link

<script setup>
if (ok) {
  for (let a of [1, 2, 3]) {
    await a
  }
  for (let a of [1, 2, 3]) {
    await a
    await a
  }
}
</script>

<template>
</template>

@netlify
Copy link

netlify bot commented Apr 26, 2022

Deploy Preview for vuejs-coverage ready!

Name Link
🔨 Latest commit dc5ad36
🔍 Latest deploy log https://app.netlify.com/sites/vuejs-coverage/deploys/62689d74c388760008011f74
😎 Deploy Preview https://deploy-preview-5810--vuejs-coverage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 26, 2022

Deploy Preview for vue-next-template-explorer ready!

Name Link
🔨 Latest commit dc5ad36
🔍 Latest deploy log https://app.netlify.com/sites/vue-next-template-explorer/deploys/62689d74b74d8e00089c774a
😎 Deploy Preview https://deploy-preview-5810--vue-next-template-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 26, 2022

Deploy Preview for vue-sfc-playground ready!

Name Link
🔨 Latest commit dc5ad36
🔍 Latest deploy log https://app.netlify.com/sites/vue-sfc-playground/deploys/62689d74d7f8a90009f10bca
😎 Deploy Preview https://deploy-preview-5810--vue-sfc-playground.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@yyx990803
Copy link
Member

Manually merged as a0290fe

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

Successfully merging this pull request may close these issues.

async transformer doesn't correctly detect need for semicolon in block
2 participants