TypeScript

TypeScript : Incorrect usage of block finally

Overview

JavaScript suspends the control flow statements of try and catch blocks until the execution of finally block finishes. So, when return, throw, break, continue is used in finally, control flow statements inside try and catch are overwritten, which is considered as unexpected behavior.

LOW

DerScanner Severity Score

Check your TypeScript code for this vulnerability, free

Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.

Try it on your code, free

By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.