-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js毁三观系列 #3
Comments
继续深究。
输出 3 2 在此我们不得不佩服try/finally 包裹的代码块,居然优先级比return还要高。 |
继续
先执行finally之后抛出异常。 |
输出2 3 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
原本以为函数体里面执行return之后,后面的代码都是unreachable的,没想到啊没想到,如果被try块包裹,finally块内的代码还是会执行。
The text was updated successfully, but these errors were encountered: