Changeset 79a0317 for imaps-frontend/node_modules/es-abstract/2022/ApplyStringOrNumericBinaryOperator.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2022/ApplyStringOrNumericBinaryOperator.js
r0c6b92a r79a0317 70 70 var lnum = ToNumeric(lval); 71 71 var rnum = ToNumeric(rval); 72 var T = Type(lnum); 73 if (T !== Type(rnum)) { 72 if (Type(lnum) !== Type(rnum)) { 74 73 throw new $TypeError('types of ' + lnum + ' and ' + rnum + ' differ'); 75 74 } 76 var Operation = table[opText][ T === 'BigInt' ? 1 : 0];75 var Operation = table[opText][typeof lnum === 'bigint' ? 1 : 0]; 77 76 return Operation(lnum, rnum); 78 77 };
Note:
See TracChangeset
for help on using the changeset viewer.