File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,16 @@ tmp=`mktemp`.js
3535# Separate compiler and runtime arguments
3636compiler_args=" "
3737runtime_args=" "
38+ keep_temp=false
3839
3940for arg in " $@ " ; do
4041 case " $arg " in
4142 --no-color)
4243 runtime_args=" $runtime_args $arg "
4344 ;;
45+ --keep-temp)
46+ keep_temp=true
47+ ;;
4448 * )
4549 compiler_args=" $compiler_args $arg "
4650 ;;
5155
5256if [ $? -eq 0 ]; then
5357 eval " node --stack-trace-limit=1000 \" $TROUPE /rt/built/troupe.mjs\" -f=\" $tmp \" --localonly $runtime_args "
54- rm " $tmp "
58+ if [ " $keep_temp " = false ]; then
59+ rm " $tmp "
60+ else
61+ echo " Temporary file kept at: $tmp "
62+ fi
5563else
5664 exit $?
5765fi
Original file line number Diff line number Diff line change @@ -89,6 +89,10 @@ export class UserRuntimeZero {
8989 }
9090
9191
92+ debug ( x ) {
93+ this . runtime . debug ( x ) ;
94+ }
95+
9296 ret ( x ) {
9397 this . runtime . ret ( x )
9498 }
You can’t perform that action at this time.
0 commit comments