@@ -102,11 +102,9 @@ Four.prototype._nodes_with_list = function (M, list, other) {
102102
103103Four . prototype . _nodes_with_list_and_one = function ( M , list , other ) {
104104 assert ( other instanceof One ) ;
105- assert ( Number . isInteger ( list . length ) && list . length >= 0 && list . length <= 4 ) ;
105+ assert ( Number . isInteger ( list . length ) && list . length >= 1 && list . length <= 4 ) ;
106106 // eslint-disable-next-line default-case
107107 switch ( list . length ) {
108- case 0 :
109- return [ node3 ( M , other . a , this . a , this . b ) , node2 ( M , this . c , this . d ) ] ;
110108 case 1 :
111109 return [
112110 node3 ( M , other . a , list [ 0 ] , this . a ) ,
@@ -135,14 +133,9 @@ Four.prototype._nodes_with_list_and_one = function (M, list, other) {
135133
136134Four . prototype . _nodes_with_list_and_two = function ( M , list , other ) {
137135 assert ( other instanceof Two ) ;
138- assert ( Number . isInteger ( list . length ) && list . length >= 0 && list . length <= 4 ) ;
136+ assert ( Number . isInteger ( list . length ) && list . length >= 1 && list . length <= 4 ) ;
139137 // eslint-disable-next-line default-case
140138 switch ( list . length ) {
141- case 0 :
142- return [
143- node3 ( M , other . a , other . b , this . a ) ,
144- node3 ( M , this . b , this . c , this . d ) ,
145- ] ;
146139 case 1 :
147140 return [
148141 other . node ( M ) ,
@@ -173,15 +166,9 @@ Four.prototype._nodes_with_list_and_two = function (M, list, other) {
173166
174167Four . prototype . _nodes_with_list_and_three = function ( M , list , other ) {
175168 assert ( other instanceof Three ) ;
176- assert ( Number . isInteger ( list . length ) && list . length >= 0 && list . length <= 4 ) ;
169+ assert ( Number . isInteger ( list . length ) && list . length >= 1 && list . length <= 4 ) ;
177170 // eslint-disable-next-line default-case
178171 switch ( list . length ) {
179- case 0 :
180- return [
181- other . node ( M ) ,
182- node2 ( M , this . a , this . b ) ,
183- node2 ( M , this . c , this . d ) ,
184- ] ;
185172 case 1 :
186173 return [
187174 other . node ( M ) ,
@@ -213,15 +200,9 @@ Four.prototype._nodes_with_list_and_three = function (M, list, other) {
213200
214201Four . prototype . _nodes_with_list_and_four = function ( M , list , other ) {
215202 assert ( other instanceof Four ) ;
216- assert ( Number . isInteger ( list . length ) && list . length >= 0 && list . length <= 4 ) ;
203+ assert ( Number . isInteger ( list . length ) && list . length >= 1 && list . length <= 4 ) ;
217204 // eslint-disable-next-line default-case
218205 switch ( list . length ) {
219- case 0 :
220- return [
221- node3 ( M , other . a , other . b , other . c ) ,
222- node2 ( M , other . d , this . a ) ,
223- node3 ( M , this . b , this . c , this . d ) ,
224- ] ;
225206 case 1 :
226207 return [
227208 node3 ( M , other . a , other . b , other . c ) ,
0 commit comments