diff options
author | Sunil Shetye | 2018-07-17 12:01:51 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 11:36:15 +0530 |
commit | 0b627cfc50bb740a3a3f110285253e4f404e012f (patch) | |
tree | ad0f68f5fe8aac76706b72487b938c74f771b8d7 /js/IntegerOp | |
parent | 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (diff) | |
download | sci2js-0b627cfc50bb740a3a3f110285253e4f404e012f.tar.gz sci2js-0b627cfc50bb740a3a3f110285253e4f404e012f.tar.bz2 sci2js-0b627cfc50bb740a3a3f110285253e4f404e012f.zip |
handle case when there are no options
Diffstat (limited to 'js/IntegerOp')
-rw-r--r-- | js/IntegerOp/DFLIPFLOP.js | 4 | ||||
-rw-r--r-- | js/IntegerOp/DLATCH.js | 4 | ||||
-rw-r--r-- | js/IntegerOp/JKFLIPFLOP.js | 4 | ||||
-rw-r--r-- | js/IntegerOp/SRFLIPFLOP.js | 4 |
4 files changed, 4 insertions, 12 deletions
diff --git a/js/IntegerOp/DFLIPFLOP.js b/js/IntegerOp/DFLIPFLOP.js index 7a0219c8..33c1721b 100644 --- a/js/IntegerOp/DFLIPFLOP.js +++ b/js/IntegerOp/DFLIPFLOP.js @@ -96,9 +96,7 @@ function DFLIPFLOP() { return this.x; } DFLIPFLOP.prototype.get = function DFLIPFLOP() { - var options = { - } - return options; + alert("parameters cannot be modified"); } DFLIPFLOP.prototype.set = function DFLIPFLOP() { return new BasicBlock(this.x); diff --git a/js/IntegerOp/DLATCH.js b/js/IntegerOp/DLATCH.js index da4d72f4..2f7a70d9 100644 --- a/js/IntegerOp/DLATCH.js +++ b/js/IntegerOp/DLATCH.js @@ -41,9 +41,7 @@ function DLATCH() { return this.x; } DLATCH.prototype.get = function DLATCH() { - var options = { - } - return options; + alert("parameters cannot be modified"); } DLATCH.prototype.set = function DLATCH() { return new BasicBlock(this.x); diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js index 026a75ab..493293e2 100644 --- a/js/IntegerOp/JKFLIPFLOP.js +++ b/js/IntegerOp/JKFLIPFLOP.js @@ -52,9 +52,7 @@ function JKFLIPFLOP() { return this.x; } JKFLIPFLOP.prototype.get = function JKFLIPFLOP() { - var options = { - } - return options; + alert("parameters cannot be modified"); } JKFLIPFLOP.prototype.set = function JKFLIPFLOP() { if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js index 055c87b7..428b23f0 100644 --- a/js/IntegerOp/SRFLIPFLOP.js +++ b/js/IntegerOp/SRFLIPFLOP.js @@ -36,9 +36,7 @@ function SRFLIPFLOP() { return this.x; } SRFLIPFLOP.prototype.get = function SRFLIPFLOP() { - var options = { - } - return options; + alert("parameters cannot be modified"); } SRFLIPFLOP.prototype.set = function SRFLIPFLOP() { if (typeof(o)=="Block"&&o.gui=="DOLLAR_m") { |