5c74e0e16f
There's an assert in InvocationMirror_unpackTypeArguments checking that the length of the incomming TypeArguments is positive (len > 0). That's not a valid assert. When creating TypeArguments it will be TypeArguments::null() if it is empty or contains only dynamic. TypeArguments::null() will answer 0 as length which is thus perfectly valid. This CL fixes the wrong assert (technically it returns before the assert, but still). Fixes #31381. Change-Id: I7a253418b69751b13e98fcf2def2b23b32f96142 Reviewed-on: https://dart-review.googlesource.com/37480 Reviewed-by: Samir Jindel <sjindel@google.com> Commit-Queue: Jens Johansen <jensj@google.com>