Project

General

Profile

Actions

Bug #3570

closed

Passing INFINITY Results in Wt Internal Error

Added by Anonymous over 10 years ago. Updated about 10 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);
Actions #1

Updated by Wim Dumon over 10 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.

Actions #2

Updated by Koen Deforche about 10 years ago

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

Updated by Koen Deforche about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF