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
parent
b51f7fa042
commit
661684f1e4
|
@ -48,6 +48,9 @@
|
|||
<!-- newline -->
|
||||
<variable name="compiler:nl" select="' '" />
|
||||
|
||||
<!-- 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>
|
||||
|
|
Loading…
Reference in New Issue