kopia lustrzana https://github.com/backface/turtlestitch
added JIT-Compiler support for new IF/ELSE reporter primitive
rodzic
05a5dc3af1
commit
09bcbf1306
|
@ -86,6 +86,7 @@
|
|||
* duplicated help-screens for "map" & friends for their atomic "blitz" variants
|
||||
* Objects: expose "import raw data" option in variable watcher context menu
|
||||
* German translation update for "raw data" importing feature
|
||||
* Threads: added JIT-Compiler support for new IF/ELSE reporter primitive
|
||||
|
||||
### 2019-04-30
|
||||
* Blocks, Threads: added "id" to image attributes dropdown
|
||||
|
|
|
@ -5555,6 +5555,14 @@ JSCompiler.prototype.compileExpression = function (block) {
|
|||
return this.compileInfix('||', inputs);
|
||||
case 'reportAnd':
|
||||
return this.compileInfix('&&', inputs);
|
||||
case 'reportIfElse':
|
||||
return '(' +
|
||||
this.compileInput(inputs[0]) +
|
||||
' ? ' +
|
||||
this.compileInput(inputs[1]) +
|
||||
' : ' +
|
||||
this.compileInput(inputs[2]) +
|
||||
')';
|
||||
case 'evaluateCustomBlock':
|
||||
throw new Error(
|
||||
'compiling does not yet support\n' +
|
||||
|
|
Ładowanie…
Reference in New Issue