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

Unified Diff: tool/input_sdk/patch/internal_patch.dart

Issue 1939093003: List.unmodifiable (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 8 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: tool/input_sdk/patch/internal_patch.dart
diff --git a/tool/input_sdk/patch/internal_patch.dart b/tool/input_sdk/patch/internal_patch.dart
index 16afd5f3aa6332ec62190bdf31b5ff3455f4f898..f5bce774f35fbb72748a630b3e7d085a717f5372 100644
--- a/tool/input_sdk/patch/internal_patch.dart
+++ b/tool/input_sdk/patch/internal_patch.dart
@@ -23,3 +23,9 @@ List makeListFixedLength(List growableList) {
JSArray.markFixedList(growableList);
return growableList;
}
+
+@patch
+List makeFixedListUnmodifiable(List list) {
+ JSArray.markUnmodifiableList(list);
+ return list;
+}

Powered by Google App Engine
This is Rietveld 408576698