graalvm run js from node

first install all requirements 

gu install nodejs 

gu install native-image 

gu rebuild-images libpolyglot 

then run 

node –native –polyglot -e ‘var array = Polyglot.eval(“ruby”, “[1,2,42,4]”); console.log(array[2]);’

 

 

 

https://www.graalvm.org/22.2/reference-manual/js/NodeJS/

 

 

 

 

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *