You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of these use an index with a subscript first (except #14117, that accesses a field) then do the add/inc operation. They all assign to temp variables instead of a field/index, like if (null != (Temp1 = arr[i-1], Temp1)) { Temp1 += 1 } else { Temp1 = 1 } when it should be if (null != (Temp1 = i-1, Temp1)) { arr[Temp1] += 1 } else { arr[Temp1] = 1 } if anything.
From my deduction, the issue is either in maybeMakeTemp in jsgen, or the subscripts like arr[i-1] are not being recognized as var T by the compiler.
The text was updated successfully, but these errors were encountered:
* many bugfixes for js
fixes#12672, fixes#14153, closes#14123, closes#11331, fixes#11783, fixes#13966, fixes#14087, fixes#14117, closes#12256.
mostly fixes the fact that it was allowed to assign to newly created temp variables. additionally attempts to get rid of null initialized seqs/strings (though they might pop up here and there); this simplifies a lot of things and makes code size smaller. even if null seqs/strings pop up here and there it's still better than all those bugs existing.
* formatting fixes
* CI fixes
* more CI fixes
* many bugfixes for js
fixesnim-lang#12672, fixesnim-lang#14153, closesnim-lang#14123, closesnim-lang#11331, fixesnim-lang#11783, fixesnim-lang#13966, fixesnim-lang#14087, fixesnim-lang#14117, closesnim-lang#12256.
mostly fixes the fact that it was allowed to assign to newly created temp variables. additionally attempts to get rid of null initialized seqs/strings (though they might pop up here and there); this simplifies a lot of things and makes code size smaller. even if null seqs/strings pop up here and there it's still better than all those bugs existing.
* formatting fixes
* CI fixes
* more CI fixes
JS is failing at doing operations when modifying
var T
s, because of incorrectly generated and used temp variables.inc
/+=
failures (dec
probably fails the same way):Seq/string addition:
reset
, probably related, works with many bugfixes for js #14158:reset
sets value types to null #12256All of these use an index with a subscript first (except #14117, that accesses a field) then do the add/inc operation. They all assign to temp variables instead of a field/index, like
if (null != (Temp1 = arr[i-1], Temp1)) { Temp1 += 1 } else { Temp1 = 1 }
when it should beif (null != (Temp1 = i-1, Temp1)) { arr[Temp1] += 1 } else { arr[Temp1] = 1 }
if anything.From my deduction, the issue is either in
maybeMakeTemp
in jsgen, or the subscripts likearr[i-1]
are not being recognized asvar T
by the compiler.The text was updated successfully, but these errors were encountered: