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

Unified Diff: sdk/lib/_internal/compiler/js_lib/collection_patch.dart

Issue 769533003: Mark empty HashMap constructor as NoThrows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: added test Created 6 years 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 | tests/compiler/dart2js/unused_empty_map_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/js_lib/collection_patch.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/collection_patch.dart b/sdk/lib/_internal/compiler/js_lib/collection_patch.dart
index 78147f8871f13771f89f8f311f881f7b9021a51e..d71139369ef01dff614072c03a8d8f6becb61957 100644
--- a/sdk/lib/_internal/compiler/js_lib/collection_patch.dart
+++ b/sdk/lib/_internal/compiler/js_lib/collection_patch.dart
@@ -4,7 +4,7 @@
// Patch file for dart:collection classes.
import 'dart:_foreign_helper' show JS;
-import 'dart:_js_helper' show fillLiteralMap, NoInline, patch;
+import 'dart:_js_helper' show fillLiteralMap, NoInline, NoThrows, patch;
@patch
class HashMap<K, V> {
@@ -523,7 +523,7 @@ class LinkedHashMap<K, V> {
}
// Private factory constructor called by generated code for map literals.
- @NoInline()
+ @NoThrows() @NoInline()
factory LinkedHashMap._empty() {
return new _LinkedHashMap<K, V>();
}
« no previous file with comments | « no previous file | tests/compiler/dart2js/unused_empty_map_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698