[dart2wasm] Mark _typeArguments as synthetic

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 <joshualitt@google.com>
Commit-Queue: Joshua Litt <joshualitt@google.com>
Auto-Submit: Srujan Gaddam <srujzs@google.com>
This commit is contained in:
Srujan Gaddam 2023-07-27 22:54:58 +00:00 committed by Commit Queue
parent 862d974619
commit 79df0b2789

View file

@ -121,6 +121,7 @@ class _WasmTransformer extends Transformer {
Nullability.nonNullable, [_nonNullableTypeType]),
),
isExternal: true,
isSynthetic: true,
fileUri: cls.fileUri)
..isNonNullableByDefault = true;
cls.addProcedure(getTypeArguments);