summaryrefslogtreecommitdiff
path: root/details.js
diff options
context:
space:
mode:
Diffstat (limited to 'details.js')
-rw-r--r--details.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/details.js b/details.js
index 3f612cb..57a5f44 100644
--- a/details.js
+++ b/details.js
@@ -549,7 +549,17 @@ function BasicBlock() {
}
function sci2exp(c) {
- if(typeof c.length === "undefined") {
+ if(c.scilabClass == "ScilabList") {
+ c = Object.create(c);
+ c.scilabClass = "";
+ if(c.length) {
+ return "list(" + sci2exp(c) + ")";
+ }
+ else {
+ return "list()";
+ }
+ }
+ else if(typeof c.length === "undefined") {
return c.toString();
}
else if (c.length == 0) {