[WasmJs] Support catching JS exceptions

Fixed #KT-65660
This commit is contained in:
Igor Yakovlev
2024-02-12 20:41:38 +01:00
committed by Space Team
parent c6aac835e5
commit 8fe5cf2641
18 changed files with 216 additions and 26 deletions
@@ -84,6 +84,12 @@ public class FirWasmJsCodegenInteropTestGenerated extends AbstractFirWasmJsCodeg
runTest("compiler/testData/codegen/boxWasmJsInterop/jsCode.kt");
}
@Test
@TestMetadata("jsException.kt")
public void testJsException() {
runTest("compiler/testData/codegen/boxWasmJsInterop/jsException.kt");
}
@Test
@TestMetadata("jsExport.kt")
public void testJsExport() {
@@ -84,6 +84,12 @@ public class K1WasmCodegenWasmJsInteropTestGenerated extends AbstractK1WasmCodeg
runTest("compiler/testData/codegen/boxWasmJsInterop/jsCode.kt");
}
@Test
@TestMetadata("jsException.kt")
public void testJsException() {
runTest("compiler/testData/codegen/boxWasmJsInterop/jsException.kt");
}
@Test
@TestMetadata("jsExport.kt")
public void testJsExport() {