Menu

#9 Number::less_than can't return undefined

open
nobody
None
5
2007-09-09
2007-09-09
No

Number::less_than currently returns a Boolean, but the spec says it should return Undefined if either of its operands are NaN.

This means the relational operators probably don't work with NaN as arguments. Write some test cases to verify this and fix the problem.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB