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

Unified Diff: lib/src/static_loader.dart

Issue 1008533003: add from option to run (Closed) Base URL: git@github.com:dart-lang/static-init.git@master
Patch Set: code review updates, remove dartium support Created 5 years, 9 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 | « lib/src/mirror_loader.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/static_loader.dart
diff --git a/lib/src/static_loader.dart b/lib/src/static_loader.dart
index 11980faea7fb73e30a4f3bf7b46bacc15d0622e0..edc679ba578232434665616be0bac776acf5f5bb 100644
--- a/lib/src/static_loader.dart
+++ b/lib/src/static_loader.dart
@@ -24,7 +24,10 @@ Queue<InitEntry> initializers = new Queue<InitEntry>();
/// Returns initializer functions matching the supplied filters and removes them
/// from `initializers` so they won't be ran again.
Queue<Function> loadInitializers(
- {List<Type> typeFilter, InitializerFilter customFilter}) {
+ {List<Type> typeFilter, InitializerFilter customFilter, Uri from}) {
+ if (from != null) {
+ throw 'The `from` option is not supported in deploy mode.';
+ }
Queue<Function> result = new Queue<Function>();
var matchesFilters = (initializer) {
« no previous file with comments | « lib/src/mirror_loader.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698