Skip to content

Commit 3308b5f

Browse files
committed
update README.md
1 parent 3ff5f63 commit 3308b5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ JSObject obj = xxx.getJSObject("test");
255255
int a = obj.getString("123");
256256
obj.release();
257257

258-
// If the JSFunction does not need to handle the return value, it is recommended to call the following method.
258+
// If the return value is an object, it also needs to be released,
259+
JSObject ret = jsFunction.call();
260+
ret.release();
261+
262+
// If you don't need to handle the return value, it is recommended to call the following method.
259263
jsFunction.callVoid(xxx);
260264
```
261265

0 commit comments

Comments
 (0)