From d5f8ca7281df77fae69b0cb254cfab2d90580f4a Mon Sep 17 00:00:00 2001 From: Polina Cherkasova Date: Fri, 4 Aug 2023 18:28:03 -0700 Subject: [PATCH] Add TODO to refactor error handling. (#131878) --- packages/flutter/lib/src/foundation/stack_frame.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter/lib/src/foundation/stack_frame.dart b/packages/flutter/lib/src/foundation/stack_frame.dart index fc126821fe9..8a2f0d61945 100644 --- a/packages/flutter/lib/src/foundation/stack_frame.dart +++ b/packages/flutter/lib/src/foundation/stack_frame.dart @@ -78,6 +78,9 @@ class StackFrame { // On the Web in non-debug builds the stack trace includes the exception // message that precedes the stack trace itself. fromStackTraceLine will // return null in that case. We will skip it here. + // TODO(polina-c): if one of lines was parsed to null, the entire stack trace + // is in unexpected format and should be returned as is, without partial parsing. + // https://github.com/flutter/flutter/issues/131877 .whereType() .toList(); }