Skip to content

GraalVM Javascript extentions #4276

Answered by wirthi
tmmlsBE asked this question in Q&A
Jan 28, 2022 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Hi @tmmlsBE

thanks for your question.

We do have a few additional built-ins like read(file) but most likely, this will not cover all your use-cases. See https://github.com/oracle/graaljs/blob/master/docs/user/JavaScriptCompatibility.md#additional-global-functions-in-the-js-shell

To provide implementations from Java to JavaScript, you can use our interoperability support. Have a look at https://github.com/oracle/graaljs/blob/master/docs/user/JavaInteroperability.md - in short, you can either use something like var JavaClass = Java.type("com.domain.classname"); to load Java classes into JavaScript and then use them very similar to normal JavaScript code. Or, you expose functionality wrapped…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@tmmlsBE
Comment options

@wirthi
Comment options

wirthi Feb 8, 2022
Collaborator

@tmmlsBE
Comment options

@wirthi
Comment options

wirthi Feb 8, 2022
Collaborator

@tmmlsBE
Comment options

Answer selected by alina-yur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants