From c73f811577e9422a469e44d15e1b00f4b8061799 Mon Sep 17 00:00:00 2001 From: George Corney Date: Fri, 26 Apr 2019 21:47:27 +0100 Subject: [PATCH 1/2] Replace setTimeout timeout: Int with : Float, fixes #8223 --- std/js/html/Window.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/js/html/Window.hx b/std/js/html/Window.hx index 4b8a6c37513..7a1002bf902 100644 --- a/std/js/html/Window.hx +++ b/std/js/html/Window.hx @@ -566,8 +566,8 @@ extern class Window extends EventTarget { /** @throws DOMError */ function atob( atob : String ) : String; /** @throws DOMError */ - @:overload( function( handler : haxe.Constraints.Function, timeout : Int = 0, arguments : haxe.extern.Rest ) : Int {} ) - function setTimeout( handler : String, timeout : Int = 0, unused : haxe.extern.Rest ) : Int; + @:overload( function( handler : haxe.Constraints.Function, timeout : Float = 0, arguments : haxe.extern.Rest ) : Int {} ) + function setTimeout( handler : String, timeout : Float = 0, unused : haxe.extern.Rest ) : Int; function clearTimeout( handle : Int = 0 ) : Void; /** @throws DOMError */ @:overload( function( handler : haxe.Constraints.Function, timeout : Int = 0, arguments : haxe.extern.Rest ) : Int {} ) From a9b3a417d184512a6fa2b0091301cf9654e4cfe9 Mon Sep 17 00:00:00 2001 From: George Corney Date: Fri, 26 Apr 2019 21:53:21 +0100 Subject: [PATCH 2/2] Int -> Float in setInterval --- std/js/html/Window.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/js/html/Window.hx b/std/js/html/Window.hx index 7a1002bf902..84e71402942 100644 --- a/std/js/html/Window.hx +++ b/std/js/html/Window.hx @@ -570,8 +570,8 @@ extern class Window extends EventTarget { function setTimeout( handler : String, timeout : Float = 0, unused : haxe.extern.Rest ) : Int; function clearTimeout( handle : Int = 0 ) : Void; /** @throws DOMError */ - @:overload( function( handler : haxe.Constraints.Function, timeout : Int = 0, arguments : haxe.extern.Rest ) : Int {} ) - function setInterval( handler : String, timeout : Int = 0, unused : haxe.extern.Rest ) : Int; + @:overload( function( handler : haxe.Constraints.Function, timeout : Float = 0, arguments : haxe.extern.Rest ) : Int {} ) + function setInterval( handler : String, timeout : Float = 0, unused : haxe.extern.Rest ) : Int; function clearInterval( handle : Int = 0 ) : Void; /** @throws DOMError */ @:overload( function( aImage : VideoElement) : Promise {} )