4 ms·
It's more of a 'result' variable, because the result can be a return or a throw. If you throw, it clears the return, and vice versa. I had something like this
by jaffathecake 5y ago
It's more of a 'result' variable, because the result can be a return or a throw. If you throw, it clears the return, and vice versa.
I had something like this in the article originally, but then you also need to say that `catch` also does `_result = undefined`, and it felt messy.