eclipsesource / eclipsesource/J2V8

how to return a long type in java funtion register to v8

Open
#472 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

I want to return a lang value in a java funtion,what can i do

fun getRandomValues():Long{
val sercurirandom = SecureRandom()
val bytes = ByteArray(4)
sercurirandom.nextBytes(bytes)
val results = bytes.getUIntAt(0)
return results
}

this function by kotlin what can i do to register it to js runtime

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.