Actions
Bug #3570
closedPassing INFINITY Results in Wt Internal Error
Description
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 over 9 years ago
Please use std::numeric_limits<double>::max()
and 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.
BR,
Wim.
Updated by Koen Deforche over 9 years ago
- Status changed from New to Resolved
- Assignee changed from Koen Deforche to Wim Dumon
- Target version set to 3.3.4
Updated by Koen Deforche over 9 years ago
- Status changed from Resolved to Closed
Actions