i don't know where to take this (here or <#C0B8L3U...
# coroutines
j
i don't know where to take this (here or #javascript), but
Copy code
class SuspendTest {
  @Test fun a() = promise {
    delay(10)
    assertTrue(true)
  }
}
in JS triggers the same error with QUnit and 1.2.0-eap-33. In the JS I can see the
test(..)
call correctly returns the result, the test function calls
promise()
which creates a
Promise
, the coroutine lambda gets passed as the fourth argument to
promise
, etc. Everything looks correct as far as I can tell. I lose it in the coroutine state machine when it's completing from
doResume
. I don't see how that gets translated back to completing the promise. Moreover, though, it seems like something already incorrectly resolved the promise or I wouldn't get the errors.