[x3d-public] Suggested patch for X3dToNodeJS.xslt (add exit at end of file)

John Carlson yottzumm at gmail.com
Mon Sep 13 17:43:04 PDT 2021


Please apply this patch to the x3d sourceforge project as a work around 
for non-exiting Node.JS (v12) files.

Add to discussion of some meeting where we can discuss pros and cons 
while we wait for updated npm java.

This may be tied to version of Java used by npm java, not sure. I 
generally have been using version 12 with nvm.

Index: X3dToNodeJS.xslt
===================================================================
--- X3dToNodeJS.xslt    (revision 32414)
+++ X3dToNodeJS.xslt    (working copy)
@@ -299,7 +299,8 @@
         }
  }
  </xsl:text><!-- class complete -->
-<xsl:text>new </xsl:text><xsl:value-of 
select="$newClassName"/><xsl:text>().main();</xsl:text>
+<xsl:text>new </xsl:text><xsl:value-of 
select="$newClassName"/><xsl:text>().main();
+process.exit(0);</xsl:text>


      </xsl:template>




More information about the x3d-public mailing list