src/current/compiler/js.xsl: Remove last anyValue arg by default

This was used to provide additional information on the stack for debugging
the compiled code.  Since this is very rarely needed, and is only needed by
someone debugging the compiler, it can be manually enabled if desired.

This also wraps it so that it'll be stripped if it is included.
master
Mike Gerwitz 2020-01-20 15:30:03 -05:00
parent b51f7fa042
commit 661684f1e4
1 changed files with 8 additions and 3 deletions

View File

@ -48,6 +48,9 @@
<!-- newline -->
<variable name="compiler:nl" select="'&#10;'" />
<!-- output additional information on the stack for debugging -->
<variable name="debug-id-on-stack" select="false()" />
<!--
Generates rater function
@ -901,9 +904,11 @@
</choose>
<!-- for debugging -->
<text>,"</text>
<value-of select="$input" />
<text>"</text>
<if test="$debug-id-on-stack">
<text>/*!+*/,"</text>
<value-of select="$input" />
<text>"/*!-*/</text>
</if>
<!-- end of anyValue() call -->
<text> ) </text>