回答編集履歴

1

再帰処理がまずかった

2021/02/28 07:35

投稿

babu_babu_baboo
babu_babu_baboo

スコア616

test CHANGED
@@ -42,11 +42,7 @@
42
42
 
43
43
  this.setDate (this.getDate () + day);
44
44
 
45
- if (this.isHoliday)
46
-
47
- this.nextSaleDate ();
45
+ return this.isHoliday ? this.nextSaleDate () : this;
48
-
49
- return this;
50
46
 
51
47
  }
52
48