Project

General

Profile

Bug #3570

Passing INFINITY Results in Wt Internal Error

Added by Anonymous almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/09/2014
Due date:
% Done:

0%

Estimated time:

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);
#1

Updated by Wim Dumon almost 8 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.

#2

Updated by Koen Deforche almost 8 years ago

  • Status changed from New to Resolved
  • Assignee changed from Koen Deforche to Wim Dumon
  • Target version set to 3.3.4
#3

Updated by Koen Deforche almost 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF