Skip to content

Commit

Permalink
Tweak for StackTraceValue.
Browse files Browse the repository at this point in the history
Change-Id: I308bd327a2fb0a3469631a5ef9d6f0db9a84ba13
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/412341
Commit-Queue: Konstantin Shcheglov <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
  • Loading branch information
scheglov authored and Commit Queue committed Feb 26, 2025
1 parent c496fea commit e964a4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class StackTraceValue<T> {
T get value => _value;

void set value(T v) {
_stackTraces.add((_value, StackTrace.current));
_stackTraces.add((v, StackTrace.current));
_value = v;
}
}
Expand Down Expand Up @@ -85,7 +85,7 @@ class StackTraceList<T> with ListMixin<T> implements List<T> {

@override
void addAll(Iterable<T> iterable) {
_stackTraces.add(('add', iterable.toList(), StackTrace.current));
_stackTraces.add(('addAll', iterable.toList(), StackTrace.current));
_list.addAll(iterable);
}

Expand Down

0 comments on commit e964a4e

Please sign in to comment.