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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart

Issue 32033002: Fis crash https://code.google.com/p/dart/issues/detail?id=14242, by calling resolveArguments on the… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | sdk/lib/_internal/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart (revision 28918)
+++ sdk/lib/_internal/compiler/implementation/inferrer/inferrer_visitor.dart (working copy)
@@ -223,7 +223,10 @@
final List<T> positional;
final Map<String, T> named;
ArgumentsTypes(this.positional, named)
- : this.named = (named == null || named.isEmpty) ? const {} : named;
+ : this.named = (named == null || named.isEmpty) ? const {} : named {
+ assert(this.positional.every((T type) => type != null));
+ assert(this.named.values.every((T type) => type != null));
+ }
int get length => positional.length + named.length;
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698