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); |
} |