[WasmJs] Add support for external class reflection

Fix #KT-64890
This commit is contained in:
Igor Yakovlev
2024-01-26 21:16:29 +01:00
parent e302420197
commit 6930fc8fed
24 changed files with 330 additions and 81 deletions
@@ -24,6 +24,12 @@ public class FirWasmJsCodegenInteropTestGenerated extends AbstractFirWasmJsCodeg
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxWasmJsInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true);
}
@Test
@TestMetadata("associatedExternalObject.kt")
public void testAssociatedExternalObject() {
runTest("compiler/testData/codegen/boxWasmJsInterop/associatedExternalObject.kt");
}
@Test
@TestMetadata("callingWasmDirectly.kt")
public void testCallingWasmDirectly() {
@@ -162,6 +168,12 @@ public class FirWasmJsCodegenInteropTestGenerated extends AbstractFirWasmJsCodeg
runTest("compiler/testData/codegen/boxWasmJsInterop/nullableExternRefs.kt");
}
@Test
@TestMetadata("reflectionOnExternals.kt")
public void testReflectionOnExternals() {
runTest("compiler/testData/codegen/boxWasmJsInterop/reflectionOnExternals.kt");
}
@Test
@TestMetadata("types.kt")
public void testTypes() {
@@ -24,6 +24,12 @@ public class K1WasmCodegenWasmJsInteropTestGenerated extends AbstractK1WasmCodeg
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxWasmJsInterop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.WASM, true);
}
@Test
@TestMetadata("associatedExternalObject.kt")
public void testAssociatedExternalObject() {
runTest("compiler/testData/codegen/boxWasmJsInterop/associatedExternalObject.kt");
}
@Test
@TestMetadata("callingWasmDirectly.kt")
public void testCallingWasmDirectly() {
@@ -162,6 +168,12 @@ public class K1WasmCodegenWasmJsInteropTestGenerated extends AbstractK1WasmCodeg
runTest("compiler/testData/codegen/boxWasmJsInterop/nullableExternRefs.kt");
}
@Test
@TestMetadata("reflectionOnExternals.kt")
public void testReflectionOnExternals() {
runTest("compiler/testData/codegen/boxWasmJsInterop/reflectionOnExternals.kt");
}
@Test
@TestMetadata("types.kt")
public void testTypes() {