Passing INFINITY Results in Wt Internal Error
The following code results in the preceding error in Wt 3.3.3:
Wt Internal Error: ReferenceError: inf is not defined, code: undefined, description: undefined Wt::WDoubleValidator *validator = new Wt::WDoubleValidator(-INFINITY, INFINITY);
Updated by Wim Dumon almost 8 years ago
std::numeric_limits<double>::min() instead of INFINITY. IFINITY is not supported by WDoubleValidator (like NaN and other special floats).
Nevertheless, I added checks to avoid that we will render bad JS in the future for infinity values. This will appear in git soon.