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
any statement that starts with await
and terminates when
the result of a return is not a promise
(or when it's the end of the line).
Bug
Intuitively you'd think these should work as await signals that the interpreter should resolve all promises in the chain... but 'tis not so!
// error, oppsSync is not a property of the return valueletfoo=awaitbuildAsyncChain().buildMore().oopsSync().result;// same as aboveletbar=awaitdoAsyncStuff().oopsSync().asyncMore();
Each await chain MUST be on its own line.
An "await chain" is
await
and terminates when
Bug
Intuitively you'd think these should work as
await
signals that the interpreter should resolve all promises in the chain... but 'tis not so!Good Example
This is the desired, non-buggy behavior:
Bad Example
The text was updated successfully, but these errors were encountered: