You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/topics/wasm/wasm-js-interop.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -380,7 +380,7 @@ Although Kotlin/Wasm interoperability shares similarities with Kotlin/JS interop
380
380
|**Long**| Type corresponds to JavaScript `BigInt`. | Visible as a custom class in JavaScript. |
381
381
|**Arrays**| Not supported in interop directly yet. You can use the new `JsArray` type instead. | Implemented as JavaScript arrays. |
382
382
|**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. |
384
384
|**Dynamic types**| Does not support the `dynamic` type. Use `JsAny` instead (see sample code below). | Supports the `dynamic` type. |
385
385
386
386
> Kotlin/JS [dynamic type](dynamic-type.md) for interoperability with untyped or loosely typed objects is not
0 commit comments