File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 117117 (`result ; :: );
118118 (`errored ; 1b );
119119 (`error ; err );
120- (`backtrace ; .Q.sbt userCode ))
120+ (`backtrace ; .Q.sbt userCode );
121+ (`base64 ; 0b ))
121122 }[suffix ; prefix ]];
122123 if [isLastLine or result `errored ;
123124 system "d " , cachedCtx ;
191192 // fn[sampleSize; data]
192193 // }
193194 result : evalInContext [ctx ; splitExpression stripTrailingSemi wrapLines removeMultilineComments code ];
194- if [(not result `errored ) and returnFormat ~ "text" ;
195+ if [result `errored ; : result ];
196+ if [type [result [`result ]] = 99h ;
197+ if [`output in key result [`result ];
198+ if [type [result [`result ][`output ]] = 99h ;
199+ if [`bytes in key result [`result ][`output ];
200+ result [`base64 ]: 1b ; result [`result ]: .Q.btoa result [`result ][`output ][`bytes ]; : result ]]]];
201+ if [returnFormat ~ "text" ;
195202 result [`result ]: toString result `result ];
196- if [( not result `errored ) and returnFormat ~ "structuredText" ;
203+ if [returnFormat ~ "structuredText" ;
197204 result [`result ]: toStructuredText [result `result ;count result `result ; isAtom result `result ; typeOf result `result ]];
198205 result
199206 }
You can’t perform that action at this time.
0 commit comments