[dart2wasm] Fix popWasmArray positional arguments assert.

popWasmArray is called with 2 arguments, not 4:
https://github.com/dart-lang/sdk/blob/main/sdk/lib/_internal/wasm/lib/convert_patch.dart#L103

Change-Id: I848a26d7213af88cf070184ef139bd26010d28bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/381560
Commit-Queue: Ömer Ağacan <omersa@google.com>
Reviewed-by: Ömer Ağacan <omersa@google.com>
This commit is contained in:
Nate Biggs
2024-08-21 07:32:26 +00:00
committed by Commit Queue
parent 9a0eafda2f
commit 3217fb1590
+1 -1
View File
@@ -929,7 +929,7 @@ class PushPopWasmArrayTransformer {
elementType.withDeclaredNullability(Nullability.nullable);
final positionalArguments = invocation.arguments.positional;
assert(positionalArguments.length == 4);
assert(positionalArguments.length == 2);
final array = positionalArguments[0];
final length = positionalArguments[1];