Friday, August 05, 2022

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/

 

 

 

 

 

 

 

 

 

No comments:

apple iphone 16 return in UK Glasgow

 After I saw that WhatsApp desktop is not working(I tried 2 different laptops, uninstalled or resetting the app but did not work) and uBlock...