added JIT-Compiler support for new IF/ELSE reporter primitive

pull/89/head
jmoenig 2019-05-02 18:27:38 +02:00
rodzic 05a5dc3af1
commit 09bcbf1306
2 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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' +