eclipsesource / eclipsesource/J2V8

How to pass a Java object to JS?

Open
#516 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.6k
Forks
387
PR merge metrics
No merged PRs in 30d

Description

In Nashorn I can call a JS function with a Java object as parameter, like this:
```invocable.invokeFunction("funcName", new Date());```
How can I do that in J2V8 ? There are only int, boolean, double, String and V8Value can be push into a V8Array which is the only parameter of
```v8.executeFunction("funcName", v8Array)```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.