You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class A {
int get foo => 3;
int get bar => throw 'bad';
}
void main() {
final a = A();
debugger(); // <-- stop here
}
Given the shown breakpoint, in DevTools we would expect to be able to expand a and evaluate the subfields of A. We should see something like foo: 3, bar: "Error: bad".
However, dwds tries to batch these expressions and sends a single request to Chrome like [x.foo, x.bar]. This array expression fails to evaluate because one of the subexpressions throws. When the full expression fails, the batch evaluator ends up resolving to an error for every expression in the batch.
DevTools surfaces this as:
Failed to evaluate expression 'x.foo': InternalError: No batch result object ID.
Failed to evaluate expression 'x.bar': InternalError: No batch result object ID.
Instead we should be showing the correct value for foo and the error thrown for bar.
The text was updated successfully, but these errors were encountered:
Consider the following code:
Given the shown breakpoint, in DevTools we would expect to be able to expand
a
and evaluate the subfields ofA
. We should see something likefoo: 3, bar: "Error: bad"
.However, dwds tries to batch these expressions and sends a single request to Chrome like
[x.foo, x.bar]
. This array expression fails to evaluate because one of the subexpressions throws. When the full expression fails, the batch evaluator ends up resolving to an error for every expression in the batch.DevTools surfaces this as:
Instead we should be showing the correct value for
foo
and the error thrown forbar
.The text was updated successfully, but these errors were encountered: