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

hammerhead seems to break yet another syntactic pattern #2002

Closed
mixtur opened this issue Apr 22, 2019 · 2 comments
Closed

hammerhead seems to break yet another syntactic pattern #2002

mixtur opened this issue Apr 22, 2019 · 2 comments
Assignees
Labels
STATE: Auto-locked Issues that were automatically locked by the Lock bot SYSTEM: script processing TYPE: bug
Milestone

Comments

@mixtur
Copy link

mixtur commented Apr 22, 2019

This code

<script>
  new X(() => {
    (async () => {
      await a;
      b[c] = d;
    })();
  });
</script>

is being transformed into something invalid.

Browser says

Uncaught SyntaxError: await is only valid in async function

@LavrovArtem LavrovArtem self-assigned this Apr 23, 2019
@LavrovArtem LavrovArtem added this to the Sprint #32 milestone Apr 23, 2019
@miherlosev
Copy link
Contributor

Thank you for the provided detail. We've reproduced the problem.

LavrovArtem added a commit to LavrovArtem/testcafe-hammerhead that referenced this issue Apr 23, 2019
@lock
Copy link

lock bot commented May 3, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked Issues that were automatically locked by the Lock bot label May 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
STATE: Auto-locked Issues that were automatically locked by the Lock bot SYSTEM: script processing TYPE: bug
Projects
None yet
Development

No branches or pull requests

3 participants