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

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

Issue 1056353004: Add List.unmodifiable constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove left-over debug coide. Created 5 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: sdk/lib/_internal/compiler/js_lib/internal_patch.dart
diff --git a/sdk/lib/_internal/compiler/js_lib/internal_patch.dart b/sdk/lib/_internal/compiler/js_lib/internal_patch.dart
index 16afd5f3aa6332ec62190bdf31b5ff3455f4f898..6c39c4a4d8ac663d1f2d18fedbe69d68bc227879 100644
--- a/sdk/lib/_internal/compiler/js_lib/internal_patch.dart
+++ b/sdk/lib/_internal/compiler/js_lib/internal_patch.dart
@@ -20,6 +20,10 @@ void printToConsole(String line) {
@patch
List makeListFixedLength(List growableList) {
- JSArray.markFixedList(growableList);
- return growableList;
+ return JSArray.markFixedList(growableList);
+}
+
+@patch
+List makeFixedListUnmodifiable(List fixedLengthList) {
+ return JSArray.markUnmodifiableList(fixedLengthList);
}

Powered by Google App Engine
This is Rietveld 408576698