Skip to content

Commit a1b25a8

Browse files
Update docs/topics/wasm/wasm-js-interop.md
1 parent e140376 commit a1b25a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/wasm/wasm-js-interop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ Although Kotlin/Wasm interoperability shares similarities with Kotlin/JS interop
380380
| **Long** | Type corresponds to JavaScript `BigInt`. | Visible as a custom class in JavaScript. |
381381
| **Arrays** | Not supported in interop directly yet. You can use the new `JsArray` type instead. | Implemented as JavaScript arrays. |
382382
| **Other types** | Requires `JsReference<>` to pass Kotlin objects to JavaScript. | Allows the use of non-external Kotlin class types in external declarations. |
383-
| **Exception handling** | Starting from 2.0.0, can catch any JavaScript exception via `JsException` and `Throwable` | Can catch JavaScript `Error` via the `Throwable` type. It can catch any JavaScript exception using the `dynamic` type. |
383+
| **Exception handling** | Starting from Kotlin 2.0.0, it can catch any JavaScript exception via the `JsException` and `Throwable` types. | Can catch JavaScript `Error` via the `Throwable` type. It can catch any JavaScript exception using the `dynamic` type. |
384384
| **Dynamic types** | Does not support the `dynamic` type. Use `JsAny` instead (see sample code below). | Supports the `dynamic` type. |
385385

386386
> Kotlin/JS [dynamic type](dynamic-type.md) for interoperability with untyped or loosely typed objects is not

0 commit comments

Comments
 (0)