Skip to content

Commit

Permalink
Make timeout Float instead of Int, fixes HaxeFoundation/haxe#8223
Browse files Browse the repository at this point in the history
  • Loading branch information
haxiomic committed Apr 26, 2019
1 parent c719dc5 commit 42023ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/Haxe.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@
),

"::WebGLRenderingContextBase::getExtension": ( "REPLACE", ["function getExtension<T>( name : Extension<T> ) : T;"] ),

# Make timeout a Float instead of an Int https://github.com/HaxeFoundation/haxe/issues/8223
"::WindowOrWorkerGlobalScope::setTimeout": ( "REPLACE", [
"@:overload( function( handler : haxe.Constraints.Function, timeout : Float = 0, arguments : haxe.extern.Rest<Dynamic> ) : Int {} )",
"function setTimeout( handler : String, timeout : Float = 0, unused : haxe.extern.Rest<Dynamic> ) : Int;"
] )
}

# Add @:deprecated meta to classes deprecated by the spec but still in use
Expand Down

0 comments on commit 42023ac

Please sign in to comment.