Created
July 16, 2020 14:50
-
-
Save keithstric/c543c5fe298c2b7b29276e8b8fd673f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This will NOT go through our error handler | |
try { | |
(null as any).f(); | |
} catch (e) { | |
console.error(e); | |
} | |
// This will go through our error handler | |
try { | |
(null as any).f(); | |
} catch (e) { | |
throw e; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment