Browse Source

rtl: fixed isNaN for ecmascript6

mattias 6 years ago
parent
commit
a73cf3423a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl/math.pas

+ 1 - 1
packages/rtl/math.pas

@@ -72,7 +72,7 @@ function Sign(const AValue: Double): Double; external name 'Math.sign'; overload
 function IsZero(const d: Double; Epsilon: Double): Boolean; overload;
 function IsZero(const d: Double): Boolean; overload;
 
-function IsNaN(const v: JSValue): boolean; external name {$IFDEF ECMAScript5}'isNaN'{$ELSE}'Number.isNan'{$ENDIF}; overload;
+function IsNaN(const v: JSValue): boolean; external name {$IFDEF ECMAScript5}'isNaN'{$ELSE}'Number.isNaN'{$ENDIF}; overload;
 function IsFinite(const d: JSValue): Boolean; external name 'isFinite'; overload;// false if NaN, positive or negative infinity
 function IsInfinite(const d: JSValue): Boolean; assembler; overload; // negative or positive infinity
 {$IFDEF ECMAScript6}