From 68138bc4e56b4280e7ce5a88df48aa4660ef3642 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Tue, 12 Mar 2024 09:15:03 -0700 Subject: [PATCH] Fix typing to unblock pub roll (#144968) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pub roller is blocked on ``` error � The argument type 'JSArray' can't be assigned to the parameter type 'JSArray'. � dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart:309:22 � argument_type_not_assignable ``` See https://github.com/flutter/flutter/pull/144852. The fixes the typing so the next pub roll can (hopefully) succeed. --- dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart b/dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart index 33f67e00cb..6926856651 100644 --- a/dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart +++ b/dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart @@ -306,7 +306,7 @@ class TimeseriesVisualization { drawLine(0, _normalized(_stats.average), _screenWidth, _normalized(_stats.average)); // Draw a horizontal dashed line corresponding to the outlier cut off. - _ctx.setLineDash([5.toJS, 5.toJS].toJS); + _ctx.setLineDash([5.toJS, 5.toJS].toJS); drawLine(0, _normalized(_stats.outlierCutOff), _screenWidth, _normalized(_stats.outlierCutOff)); // Draw a light red band that shows the noise (1 stddev in each direction).