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

Unified Diff: tests/language/bailout5_test.dart

Issue 12087083: Don't use a map literal if we insert non-string keys, otherwise it fails in checked mode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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: tests/language/bailout5_test.dart
===================================================================
--- tests/language/bailout5_test.dart (revision 17828)
+++ tests/language/bailout5_test.dart (working copy)
@@ -10,7 +10,7 @@
var array;
initArray() {
- return global[0] == null ? [null] : {};
+ return global[0] == null ? [null] : new Map();
}
bar() {
@@ -41,7 +41,7 @@
Expect.equals(1, new A().baz());
Expect.equals(1, new A().bar());
}
- global = {};
+ global = new Map();
for (int i = 0; i < 2; i++) {
Expect.equals(null, new A().baz());
Expect.equals(null, new A().bar());
« 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