[Wasm] Fix access to WebIDL dictionary members

Evaluate external interface companion objects as an empty JS object
instead of null due to null checks on interop boundary.

^KT-59082 Fixed
This commit is contained in:
Svyatoslav Kuzmich
2023-07-25 10:47:53 +02:00
committed by Space Team
parent 92de137cd6
commit 384c700a85
4 changed files with 48 additions and 0 deletions
@@ -115,6 +115,12 @@ public class FirWasmCodegenWasmJsInteropTestGenerated extends AbstractFirWasmCod
runTest("compiler/testData/codegen/boxWasmJsInterop/kotlinToJsAdapters.kt");
}
@Test
@TestMetadata("kt59082.kt")
public void testKt59082() throws Exception {
runTest("compiler/testData/codegen/boxWasmJsInterop/kt59082.kt");
}
@Test
@TestMetadata("lambdaAdapterNameClash.kt")
public void testLambdaAdapterNameClash() throws Exception {
@@ -115,6 +115,12 @@ public class K1WasmCodegenWasmJsInteropTestGenerated extends AbstractK1WasmCodeg
runTest("compiler/testData/codegen/boxWasmJsInterop/kotlinToJsAdapters.kt");
}
@Test
@TestMetadata("kt59082.kt")
public void testKt59082() throws Exception {
runTest("compiler/testData/codegen/boxWasmJsInterop/kt59082.kt");
}
@Test
@TestMetadata("lambdaAdapterNameClash.kt")
public void testLambdaAdapterNameClash() throws Exception {