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

Unified Diff: runtime/bin/builtin.dart

Issue 1154213006: - Avoid trying to write to final fields. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.dart
diff --git a/runtime/bin/builtin.dart b/runtime/bin/builtin.dart
index d2f24e8d193732ab19b8c3d775cec6fabeac9c19..a6f5da0b555691055977cd666165b6a8fb76d4ab 100644
--- a/runtime/bin/builtin.dart
+++ b/runtime/bin/builtin.dart
@@ -338,12 +338,13 @@ void _asyncLoadError(_LoadRequest req, _LoadError error) {
if (_traceLoading) {
_print("_asyncLoadError(${req._uri}), error: $error");
}
+ var libraryUri = req._libraryUri;
if (req._tag == Dart_kImportTag) {
// When importing a library, the libraryUri is the imported
// uri.
- req._libraryUri = req._uri;
+ libraryUri = req._uri;
}
- _asyncLoadErrorCallback(req._uri, req._libraryUri, error);
+ _asyncLoadErrorCallback(req._uri, libraryUri, error);
_finishLoadRequest(req);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698