You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both repros below error out the stream after some time.
In test 1, reader.read() read throws as expected.
In test 2, the output is as follows:
Possible Unhandled Promise Rejection (id: 0):
TypeError: reader._closedPromise_reject is not a function. (In 'reader._closedPromise_reject(reason)', 'reader._closedPromise_reject' is undefined)
If I wrap controller.error() with a try/catch block, the error above is caught and the try/catch block of for..await behaves exactly the same as in test 1.
Is this the intended behavior or am I doing something wrong? 🤔
Both repros below error out the stream after some time.
In test 1,
reader.read()
read throws as expected.In test 2, the output is as follows:
If I wrap
controller.error()
with a try/catch block, the error above is caught and the try/catch block offor..await
behaves exactly the same as in test 1.Is this the intended behavior or am I doing something wrong? 🤔
NOTE: I'm using the polyfill in React Native.
Test case 1
Test case 2
The text was updated successfully, but these errors were encountered: