eclipsesource / eclipsesource/J2V8

Need easy-to-use newInstance(type, args) like API in J2V8

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

Description

There appears to be no simple, easy way to invoke the JavaScript "new Xxx(arg1, arg2, ...)" from Java.

Am I missing something here?

Currently I'm introducing factory functions like "var newPromise = function(execFunction) { return new Promise(execFunction); };", but this is kind of awful.

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.