Skip to content

Commit 6100970

Browse files
alexmarkovCommit Queue
authored andcommitted
[vm,dyn_modules] Fix capturing of 'this' in instance field initializers
TEST=ci (co19/Language/Classes/access_to_this_A01_t02) Change-Id: If08c23cdc2d751e76d63d81f6aad511cd2a31fae Cq-Include-Trybots: luci.dart.try:vm-aot-dyn-linux-debug-x64-try,vm-aot-dyn-linux-product-x64-try,vm-dyn-linux-debug-x64-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/443635 Reviewed-by: Tess Strickland <[email protected]> Reviewed-by: Slava Egorov <[email protected]> Commit-Queue: Alexander Markov <[email protected]>
1 parent 6abcced commit 6100970

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/dart2bytecode/lib/local_vars.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ class _Allocator extends RecursiveVisitor {
936936
_allocateParameter(_currentFrame.receiverVar!, 0);
937937
if (_currentFrame.capturedReceiverVar != null) {
938938
_allocateVariable(_currentFrame.capturedReceiverVar!);
939+
_currentFrame.hasCapturedParameters = true;
939940
}
940941
}
941942
_allocateSpecialVariables();

0 commit comments

Comments
 (0)