-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
finally in do-expressions #6385
Copy link
Copy link
Closed
Labels
Has PRSpec: Do ExpressionsoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Metadata
Metadata
Assignees
Labels
Has PRSpec: Do ExpressionsoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
finallyshouldn't alter the completion vaule of the try statement. You can test it usingeval("body of the do expression");https://babeljs.io/repl/build/5158/#?babili=false&browsers=&build=&builtIns=false&code_lz=G4QwTgBCELwQJgewgbwgFzAT1RATBAL4QBmAlgHYgA21OaAzEUQFCiQBGsCyam9GABZhEAd1TFiAYxDopgiAAoApgEpcAVmbkqtAQDZmhFiymIKAZ0TVlAOmqIA5opAAaCB1UBuE-yjdlUGpFACJ-XAJiHRo6XCZCEO8INnAPAKDQ8L5hMQlmGTkFFXU0LSjKGIMiRJ9TcysbeycXd08vIA&debug=false&circleciRepo=&evaluate=true&lineWrap=true&presets=es2015-loose%2Cstage-0&targets=&version=7.0.0-beta.2%2Bpr.6372
Input Code
Expected Behavior
2 5
Current Behavior
3 6