Still try to render something if accidentally use ${expression} outside script
authorNick Downing <nick@ndcode.org>
Wed, 12 Jan 2022 13:20:31 +0000 (00:20 +1100)
committerNick Downing <nick@ndcode.org>
Wed, 12 Jan 2022 13:20:49 +0000 (00:20 +1100)
lib/output.js

index 6bb2200..7c52e95 100644 (file)
@@ -1845,8 +1845,8 @@ function OutputStream(options) {
 
     // Nick
     DEFPRINT(AST_Interpolate, function(output) {
-        if (!output.interpolate()) // Nick
-            throw new Error("AST_Interpolate with interpolation turned off")
+        //if (!output.interpolate()) // Nick
+        //    throw new Error("AST_Interpolate with interpolation turned off")
         output.print("(${");
         this.expression.print(output);
         output.print("})");