(JSObject object, String name, Object... args)
| 30 | } |
| 31 | |
| 32 | private CompletableFuture<Object> call(JSObject object, String name, Object... args) { |
| 33 | JSFunction func = object.getJSFunction(name); |
| 34 | if (func == null) return empty(); |
| 35 | call(func, args); |
| 36 | return future; |
| 37 | } |
| 38 | |
| 39 | private CompletableFuture<Object> empty() { |
| 40 | future.complete(null); |