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

Unified Diff: sdk/lib/_internal/pub/lib/src/executable.dart

Issue 494943002: Don't load assets unnecessarily when precompiling executables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 4 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
Index: sdk/lib/_internal/pub/lib/src/executable.dart
diff --git a/sdk/lib/_internal/pub/lib/src/executable.dart b/sdk/lib/_internal/pub/lib/src/executable.dart
index 2551bae81722e0be0e57305b2ad4d959cedd428c..5cecc13d63f4e5e2063353d2805c35e8f5d0f426 100644
--- a/sdk/lib/_internal/pub/lib/src/executable.dart
+++ b/sdk/lib/_internal/pub/lib/src/executable.dart
@@ -65,8 +65,10 @@ Future<int> runExecutable(PubCommand command, Entrypoint entrypoint,
}
var environment;
+ // TODO(nweiz): Use [packages] to only load assets from packages that the
+ // executable might load.
return AssetEnvironment.create(entrypoint, BarbackMode.RELEASE,
- WatcherType.NONE, useDart2JS: false).then((_environment) {
+ useDart2JS: false).then((_environment) {
environment = _environment;
environment.barback.errors.listen((error) {

Powered by Google App Engine
This is Rietveld 408576698