maxtaco/coffee-script — Issue #2: Nested awaits ought to work or barf
Author: maxtaco
Created: 2012-01-29 15:16:23+00:00
State: open

As reported by @superjoe30:

```coffeescript
atest "nested await", (cb) ->
a = 10
b = 11
await
foo(a, defer x)
await foo(b, defer y)
foo(y, defer z)

cb(x == a and y == b == z, {})
```

To solve this in coffee, we need to scope `__iced_deferrals` and have the closing `__iced_deferrals.fulfill()` be pushed down through the continuation chain.