TelluIoT / ThingML

The ThingML modelling language
https://github.com/TelluIoT/ThingML
Apache License 2.0
102 stars 32 forks source link

JS log Function error #103

Closed lmouline closed 8 years ago

lmouline commented 8 years ago

In the class org.thingml.compilers.javascript.SThingImplCompiler, line 176 there is:

int i = 0;
for (Parameter pa : f.getParameters()) {
    if (i > 0)
         builder.append(", ");
    builder.append("\" + ");
    builder.append(ctx.protectKeyword(pa.qname("_") + "_var"));
    builder.append(" + \"");
}

In my point of view i is always equal to 0 :)

lmouline commented 8 years ago

Idem in callListeners (I don't check in the other language)