Declare Node Script Engine with GC

This commit is contained in:
Volker Berlin 2020-06-12 22:09:42 +02:00
parent c0575b5b65
commit 8878b37225
2 changed files with 4 additions and 0 deletions

View File

@ -27,7 +27,9 @@ public enum ScriptEngine {
NodeWat,
SpiderMonkeyWat,
Wat2Wasm,
NodeJsGC(true),
SpiderMonkeyGC(true),
NodeWatGC(true),
SpiderMonkeyWatGC(true),
;

View File

@ -474,8 +474,10 @@ public class WasmRule extends TemporaryFolder {
case SpiderMonkeyWatGC:
return spiderMonkeyCommand( false, true );
case NodeJS:
case NodeJsGC:
return nodeJsCommand( nodeScript );
case NodeWat:
case NodeWatGC:
prepareNodeWat();
ProcessBuilder processBuilder = nodeJsCommand( nodeWatScript );
processBuilder.environment().put( "NODE_PATH", getNodeModulePath() );