From 5d576870d155c1ac677cd844e622ad244e0dbed2 Mon Sep 17 00:00:00 2001 From: mattias Date: Sat, 3 Nov 2018 22:04:45 +0000 Subject: [PATCH] rtl: fixed isNaN in ECMAScript6 --- packages/rtl/math.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rtl/math.pas b/packages/rtl/math.pas index abb09c3..bc984bb 100644 --- a/packages/rtl/math.pas +++ b/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}