mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
5f7841526f
``` result = Promise.all([<Promise that rejects eventually>]) # rejection 1 result.then () -> RoomEvents.emit(eventName) # rejection 2 result.catch (err) -> RoomEvents.emit(eventName, err) # handle r1 ``` As shown above, the second rejection remains unhandled. The fix is to chain the `.catch()` onto the `.then()` Promise. |
||
---|---|---|
.. | ||
helpers | ||
AuthorizationManagerTests.coffee | ||
ChannelManagerTests.coffee | ||
ConnectedUsersManagerTests.coffee | ||
DocumentUpdaterControllerTests.coffee | ||
DocumentUpdaterManagerTests.coffee | ||
DrainManagerTests.coffee | ||
EventLoggerTests.coffee | ||
RoomManagerTests.coffee | ||
SafeJsonParseTest.coffee | ||
SessionSocketsTests.coffee | ||
WebApiManagerTests.coffee | ||
WebsocketControllerTests.coffee | ||
WebsocketLoadBalancerTests.coffee |