[dart2wasm] Fix vtable offsets for closures with named parameters

Change-Id: I4a2916e52d371937d11b2b6d5c878355b55e742b
Cq-Include-Trybots: luci.dart.try:dart2wasm-linux-x64-d8-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/258804
Reviewed-by: Joshua Litt <joshualitt@google.com>
Commit-Queue: Aske Simon Christensen <askesc@google.com>
This commit is contained in:
Aske Simon Christensen 2022-09-13 06:49:08 +00:00 committed by Commit Bot
parent e36a39437c
commit 98055e5b86

View file

@ -61,7 +61,7 @@ class ClosureRepresentation {
return vtableBaseIndex + posArgCount;
} else {
return vtableBaseIndex +
posArgCount +
(posArgCount + 1) +
_indexOfCombination![NameCombination(argNames)]!;
}
}