Project

General

Profile

Actions

Bug #3570

closed
WD

Passing INFINITY Results in Wt Internal Error

Bug #3570: Passing INFINITY Results in Wt Internal Error

Added by Anonymous about 12 years ago. Updated almost 12 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);

WD Updated by Wim Dumon about 12 years ago Actions #1

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.

KD Updated by Koen Deforche almost 12 years ago Actions #2

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

KD Updated by Koen Deforche almost 12 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom