File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ <h5>LiveScript</h5>
203
203
"The answer is #{2 + 2}"
204
204
205
205
# Variables can be interpolated without the braces
206
+ variable = "world"
206
207
"Hello #variable"
207
208
208
209
## Objects - braces are optional
@@ -474,7 +475,10 @@ <h2>Changes from Coco: Detail and Rationale</h2>
474
475
catch e
475
476
e . message
476
477
if action is \run
477
- result = eval result
478
+ try
479
+ result = eval result
480
+ catch e
481
+ result = e
478
482
if result
479
483
console ?. log result
480
484
result = JSON . stringify result if action in < [ lex tokens ] >
@@ -483,7 +487,7 @@ <h2>Changes from Coco: Detail and Rationale</h2>
483
487
if action is \compile
484
488
result = prettyPrintOne result, 'lang-js', false
485
489
$ '.compiler-output' .prepend """< div >
486
- < h3 > #action< a href = "#close" class = "close" title = "Close" > ×</ a > </ h3 >
490
+ < h3 > #action< a href = "\ #close" class = "close" title = "Close" > ×</ a > </ h3 >
487
491
< pre class = "prettyprint lang-js" > #result</ pre >
488
492
</ div > """
489
493
You can’t perform that action at this time.
0 commit comments