Page 1 of 1

Wrong generated JS with func(var + 1)

Posted: Wed Mar 05, 2014 5:59 am
by cederavic
The js generated for the syntax "var + 1" is wrong :

Code: Select all

line.i = GetGadgetState(1)
AddGadgetItem(1, line + 1, "blabla")
generate

Code: Select all

v_line=spider_GetGadgetState(1);
spider_AddGadgetItem(1,(v_line+1),_S4);
it should be

Code: Select all

v_line=spider_GetGadgetState(1);
spider_AddGadgetItem(1,(v_line+++1),_S4);

Re: Wrong generated JS with func(var + 1)

Posted: Thu Mar 06, 2014 3:04 pm
by Fred
The current behaviour seems OK to me, same in PB.