Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-07 14:25:24 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-07 14:25:24 -0400
commit91316d1e8f91c9e271b18d80f87b20a4643731a3 (patch)
treee498768ae367064e985df9d74168251b3b84270f /src
parentd1e2b435a02b0395ca5dfeb185dfa4f9982daef7 (diff)
downloadtame-91316d1e8f91c9e271b18d80f87b20a4643731a3.tar.gz
tame-91316d1e8f91c9e271b18d80f87b20a4643731a3.tar.bz2
tame-91316d1e8f91c9e271b18d80f87b20a4643731a3.zip
js compiler: Escape exception string
* src/current/compiler/js.xsl (compile)[lv:classify]: Escape output for Error.
Diffstat (limited to 'src')
-rw-r--r--src/current/compiler/js.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/current/compiler/js.xsl b/src/current/compiler/js.xsl
index f975f37..aad46d5 100644
--- a/src/current/compiler/js.xsl
+++ b/src/current/compiler/js.xsl
@@ -667,7 +667,7 @@
<text>classes['</text>
<value-of select="@as" />
<text>'] ) throw Error( '</text>
- <value-of select="@desc" />
+ <value-of select="replace( @desc, '''', '\\''' )" />
<text>' );</text>
<value-of select="$compiler:nl" />