mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:29:48 +00:00
[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:
parent
e36a39437c
commit
98055e5b86
|
@ -61,7 +61,7 @@ class ClosureRepresentation {
|
|||
return vtableBaseIndex + posArgCount;
|
||||
} else {
|
||||
return vtableBaseIndex +
|
||||
posArgCount +
|
||||
(posArgCount + 1) +
|
||||
_indexOfCombination![NameCombination(argNames)]!;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue