Index: sdk/lib/_internal/compiler/js_lib/js_array.dart |
diff --git a/sdk/lib/_internal/compiler/js_lib/js_array.dart b/sdk/lib/_internal/compiler/js_lib/js_array.dart |
index ef8c0e606653c6ea33d858768c17232a4bee499b..2afabdd98e9694296f1f83ac3e377ba50042a0c7 100644 |
--- a/sdk/lib/_internal/compiler/js_lib/js_array.dart |
+++ b/sdk/lib/_internal/compiler/js_lib/js_array.dart |
@@ -83,7 +83,8 @@ class JSArray<E> extends Interceptor implements List<E>, JSIndexable { |
// to know if the property exists. |
JS('void', r'#.fixed$length = Array', list); |
JS('void', r'#.immutable$list = Array', list); |
- return JS('List', '#', list); |
+ // TODO(23309): Make it detectable that the list has fixed length. |
+ return JS('JSArray', '#', list); |
} |
checkMutable(reason) { |