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
i ran into a really weird issue that i finally simplified to a small test case:
function*top(){try{yield*bottom()}catch(err){console.log('caught an error: '+err.message)}}function*bottom(){try{yieldundefined}catch(err){return// ignore the error}}vargen=top()console.log(gen.next())console.log(gen.throw(newError('lol')))
i want to ignore specific errors in bottom(). in node 0.11, the result is correct:
i ran into a really weird issue that i finally simplified to a small test case:
i want to ignore specific errors in
bottom()
. in node0.11
, the result is correct:but in regenerator (specifically gnode) i get:
seems like regenerator isn't ignoring the error or something. here's the compiled code:
The text was updated successfully, but these errors were encountered: