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/Sinks | |
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/Sinks')
-rw-r--r-- | js/Sinks/CLKOUTV_f.js | 4 | ||||
-rw-r--r-- | js/Sinks/CLKOUT_f.js | 4 | ||||
-rw-r--r-- | js/Sinks/OUTIMPL_f.js | 4 | ||||
-rw-r--r-- | js/Sinks/OUT_f.js | 4 | ||||
-rw-r--r-- | js/Sinks/TRASH_f.js | 4 |
5 files changed, 5 insertions, 15 deletions
diff --git a/js/Sinks/CLKOUTV_f.js b/js/Sinks/CLKOUTV_f.js index a839c290..328279b2 100644 --- a/js/Sinks/CLKOUTV_f.js +++ b/js/Sinks/CLKOUTV_f.js @@ -17,9 +17,7 @@ function CLKOUTV_f() { return this.x; } CLKOUTV_f.prototype.get = function CLKOUTV_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CLKOUTV_f.prototype.set = function CLKOUTV_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sinks/CLKOUT_f.js b/js/Sinks/CLKOUT_f.js index 2bf0edfe..05f4f7c7 100644 --- a/js/Sinks/CLKOUT_f.js +++ b/js/Sinks/CLKOUT_f.js @@ -17,9 +17,7 @@ function CLKOUT_f() { return this.x; } CLKOUT_f.prototype.get = function CLKOUT_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } CLKOUT_f.prototype.set = function CLKOUT_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sinks/OUTIMPL_f.js b/js/Sinks/OUTIMPL_f.js index b8141bbc..0800cf99 100644 --- a/js/Sinks/OUTIMPL_f.js +++ b/js/Sinks/OUTIMPL_f.js @@ -23,9 +23,7 @@ function OUTIMPL_f() { return this.x; } OUTIMPL_f.prototype.get = function OUTIMPL_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } OUTIMPL_f.prototype.set = function OUTIMPL_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sinks/OUT_f.js b/js/Sinks/OUT_f.js index 0089c599..758d04a5 100644 --- a/js/Sinks/OUT_f.js +++ b/js/Sinks/OUT_f.js @@ -20,9 +20,7 @@ function OUT_f() { return this.x; } OUT_f.prototype.get = function OUT_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } OUT_f.prototype.set = function OUT_f() { this.exprs = this.graphics.exprs; diff --git a/js/Sinks/TRASH_f.js b/js/Sinks/TRASH_f.js index 699bd12d..cf48b38b 100644 --- a/js/Sinks/TRASH_f.js +++ b/js/Sinks/TRASH_f.js @@ -17,9 +17,7 @@ function TRASH_f() { return this.x; } TRASH_f.prototype.get = function TRASH_f() { - var options = { - } - return options; + alert("parameters cannot be modified"); } TRASH_f.prototype.set = function TRASH_f() { return new BasicBlock(this.x); |