Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Issue with await in switch statement #55

Closed
boris-petrov opened this Issue · 2 comments

2 participants

@boris-petrov

The following code:

foo = (callback) ->
  do callback

console.log 1

switch 'asd'
  when 'foo'
    await foo defer()
  when 'bar'
    x = 1

console.log 2

Outputs only "1" while it should output a "2" too. If you put a:

  when 'asd'
    x = 2

In the switch, then it works fine. But if none of the cases are matched, then Iced "blocks".

@maxtaco
Owner

I'll check it out, this does look like a bug. Thanks.

@maxtaco
Owner

Closed, thanks for the bug report!

@maxtaco maxtaco closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.