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
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Problem was with empty expression in for. Never got before an emptyExpression, now just will return nothing. Javascript and groovy work same way with vars used in closures that are defined outside.
This code fails translating to javascipt:
def getCallBacks(){
def callBackArray = []
def i = 0;
for(;i<3; i++){
callBackArray[i] = {return i;}
}
return callBackArray
}
def callBackArray = getCallBacks()
assert callBackArray0 == 3
The text was updated successfully, but these errors were encountered: