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

Issue 1848283002: dart2js: Do not use the async rewriter on nested functions. (Closed)

Created:
4 years, 8 months ago by Kevin Millikin (Google)
Modified:
4 years, 8 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js: Do not use the async rewriter on nested functions. Nested functions in JS can be introduced by foreign code in our own libraries. They are always plain synchronous non-generator JS functions so it is unnecessary to rewrite them. Trying to do so will crash, because the pre-translation analysis does not analyze them. The translation wouldn't do the right thing anyway. Closes https://github.com/dart-lang/sdk/issues/25396 BUG= R=sigmund@google.com, sigurdm@google.com Committed: https://github.com/dart-lang/sdk/commit/78998a518c96400807b5897ac9519167fbe740d6

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -7 lines) Patch
M pkg/compiler/lib/src/js/rewrite_async.dart View 7 chunks +19 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
Kevin Millikin (Google)
4 years, 8 months ago (2016-04-01 12:56:52 UTC) #3
Siggi Cherem (dart-lang)
lgtm!
4 years, 8 months ago (2016-04-01 17:44:08 UTC) #4
sigurdm
LGTM Thanks for fixing this!
4 years, 8 months ago (2016-04-04 07:04:58 UTC) #5
Kevin Millikin (Google)
4 years, 8 months ago (2016-04-04 07:33:41 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
78998a518c96400807b5897ac9519167fbe740d6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698