From afed64f1a0eab0b2d742088186d7bc340a2c895b Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Tue, 26 Jun 2018 12:08:19 +0530 Subject: return block type in define and set --- js/Branching/SCALAR2VECTOR.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/Branching/SCALAR2VECTOR.js') diff --git a/js/Branching/SCALAR2VECTOR.js b/js/Branching/SCALAR2VECTOR.js index a1f50ede..e849edef 100644 --- a/js/Branching/SCALAR2VECTOR.js +++ b/js/Branching/SCALAR2VECTOR.js @@ -11,6 +11,7 @@ function SCALAR2VECTOR() { exprs = [string([nout])]; gr_i = []; this.x = standard_define([3,2],model,exprs,gr_i); + return new BasicBlock(this.x); } SCALAR2VECTOR.prototype.details = function SCALAR2VECTOR() { return this.x; @@ -42,5 +43,6 @@ function SCALAR2VECTOR() { break; } } + return new BasicBlock(this.x); } } -- cgit