私の場合、ifステートメントでの割り当てが間違っていました
不正なコード
if (tasks[ti].hasOwnProperty("category") && tasks[ti].hasOwnProperty("opportunityId") && tasks[ti].category="Meeting" && now.getYear()==closingYear && now.getMonth()==closingMonth ){
// ^^ right there, should be comparison
closedMeetings.push(tasks[ti]);
}
正しいコード
if (tasks[ti].hasOwnProperty("category") && tasks[ti].hasOwnProperty("opportunityId") && tasks[ti].category=="Meeting" && now.getYear()==closingYear && now.getMonth()==closingMonth ){
closedMeetings.push(tasks[ti]);
}
ひどい部分は、間違いがLine 1
あり、このコードがline 236