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:

C# scan cs file and find variables values and names

using Microsoft . CodeAnalysis ; using Microsoft . CodeAnalysis . CSharp ; using Microsoft . CodeAnalysis . CSharp . Syntax ; using Xunit . ...