Skip to content

Commit 5e63928

Browse files
Update README.md
1 parent 8531f7c commit 5e63928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ val message = JsExecutor.execute("JsModule.getMessage") //This is message from J
4040
val logStr = JsExecutor.execute("JsModule.MathJs.log", 10000, 10) //4
4141
```
4242

43-
- Load a js bundle and execute functions
43+
- Get custom kotlin object
4444

4545
```groovy
4646
// Primitive types
47-
val logDouble = JsExecutor.executeToGetObject<Double>("JsModule.MathJs.log", 1000, 10) //2.9999999999999996
47+
val logDouble = JsExecutor.executeToGetObject<Double>("JsModule.MathJs.log", 1000, 10) //2.999
4848
4949
// Custom object
5050
val inputPoint = Point(3.4, 5.2)

0 commit comments

Comments
 (0)