Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Issue 2054323002: Fix exit detection for try statements. (Closed)

Created:
4 years, 6 months ago by Paul Berry
Modified:
4 years, 6 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix exit detection for try statements. Previously, we assumed that if the contents of the "try" block always exit, then the whole try statement always exits. But this is not correct if there is at least one catch handler that does not exit. Fixes #26676 R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/7653369e50da13ac66111bab0311c6cf9ddcf5a5

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add tests without a "finally" clause #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -23 lines) Patch
M pkg/analyzer/lib/src/generated/resolver.dart View 1 chunk +9 lines, -5 lines 0 comments Download
M pkg/analyzer/test/generated/all_the_rest_test.dart View 1 4 chunks +87 lines, -18 lines 0 comments Download
M pkg/analyzer/test/generated/non_hint_code_test.dart View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Paul Berry
4 years, 6 months ago (2016-06-10 23:44:01 UTC) #2
Brian Wilkerson
lgtm https://codereview.chromium.org/2054323002/diff/1/pkg/analyzer/test/generated/all_the_rest_test.dart File pkg/analyzer/test/generated/all_the_rest_test.dart (right): https://codereview.chromium.org/2054323002/diff/1/pkg/analyzer/test/generated/all_the_rest_test.dart#newcode3790 pkg/analyzer/test/generated/all_the_rest_test.dart:3790: void test_tryStatement_return_try_noCatch() { Strangely enough, all of the ...
4 years, 6 months ago (2016-06-11 00:13:40 UTC) #3
Paul Berry
https://codereview.chromium.org/2054323002/diff/1/pkg/analyzer/test/generated/all_the_rest_test.dart File pkg/analyzer/test/generated/all_the_rest_test.dart (right): https://codereview.chromium.org/2054323002/diff/1/pkg/analyzer/test/generated/all_the_rest_test.dart#newcode3790 pkg/analyzer/test/generated/all_the_rest_test.dart:3790: void test_tryStatement_return_try_noCatch() { On 2016/06/11 00:13:39, Brian Wilkerson wrote: ...
4 years, 6 months ago (2016-06-11 13:02:15 UTC) #4
Paul Berry
Committed patchset #2 (id:20001) manually as 7653369e50da13ac66111bab0311c6cf9ddcf5a5 (presubmit successful).
4 years, 6 months ago (2016-06-11 13:06:49 UTC) #6
srawlins
4 years, 6 months ago (2016-06-14 16:16:49 UTC) #7
Message was sent while issue was closed.
On 2016/06/11 13:06:49, Paul Berry wrote:
> Committed patchset #2 (id:20001) manually as
> 7653369e50da13ac66111bab0311c6cf9ddcf5a5 (presubmit successful).

Thanks so much Paul!! Especially for all the tests!

Powered by Google App Engine
This is Rietveld 408576698