Index: runtime/vm/exceptions.cc |
diff --git a/runtime/vm/exceptions.cc b/runtime/vm/exceptions.cc |
index 2ebff21412afd94dee4e62b8c28ede78874b0452..7b715410609d70e827a3ae232cce210762493460 100644 |
--- a/runtime/vm/exceptions.cc |
+++ b/runtime/vm/exceptions.cc |
@@ -761,7 +761,7 @@ void Exceptions::CreateAndThrowTypeError(TokenPosition location, |
} |
} |
} |
- const Array& arr = Array::Handle(zone, Array::MakeArray(pieces)); |
+ const Array& arr = Array::Handle(zone, Array::MakeFixedLength(pieces)); |
const String& error_msg = String::Handle(zone, String::ConcatAll(arr)); |
args.SetAt(3, error_msg); |