Skip to content

Commit 4fcd77c

Browse files
fishythefishcommit-bot@chromium.org
authored andcommitted
[dart2js] Ensure setter Invocation names end with "=".
This is the same approach DDC and the VM take. Longer term, it may make sense to move this logic into the CFE. Change-Id: I9118747f187ca7bfa7eabe74d45e69a8c4cf240c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155823 Reviewed-by: Sigmund Cherem <[email protected]> Commit-Queue: Mayank Patke <[email protected]>
1 parent 8c1829e commit 4fcd77c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compiler/lib/src/kernel/dart2js_target.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class Dart2jsTarget extends Target {
127127
name = name.substring(4);
128128
} else if (name.startsWith('set:')) {
129129
kind = invocationMirrorSetterKind;
130-
name = name.substring(4);
130+
name = name.substring(4) + '=';
131131
} else {
132132
kind = invocationMirrorMethodKind;
133133
}

0 commit comments

Comments
 (0)