Skip to content

Commit

Permalink
[dart2wasm] Mark _typeArguments as synthetic
Browse files Browse the repository at this point in the history
Fixes b/293426600

This synthetic procedure is added on every class with type args.
Mark it as synthetic so the JS interop checks don't trigger on
it.

Change-Id: I5b04fe4340b409a4ab1eb5c32e37fe6ff37df4b0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/316702
Reviewed-by: Joshua Litt <[email protected]>
Commit-Queue: Joshua Litt <[email protected]>
Auto-Submit: Srujan Gaddam <[email protected]>
  • Loading branch information
srujzs authored and Commit Queue committed Jul 27, 2023
1 parent 862d974 commit 79df0b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/dart2wasm/lib/transformers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class _WasmTransformer extends Transformer {
Nullability.nonNullable, [_nonNullableTypeType]),
),
isExternal: true,
isSynthetic: true,
fileUri: cls.fileUri)
..isNonNullableByDefault = true;
cls.addProcedure(getTypeArguments);
Expand Down

0 comments on commit 79df0b2

Please sign in to comment.