-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed conversion of 'setTimeout(callback, (a + b) * 1000, args)'. fixes
- Loading branch information
SlavaRa
authored
Oct 25, 2017
1 parent
bae573e
commit 59b23ad
Showing
5 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package { | ||
import flash.utils.setTimeout; | ||
public class Issue293 { | ||
public function Issue293() { | ||
var i:int = setTimeout(function(...args) { | ||
trace(args); | ||
}, (1 + 1) * 1000, 1, 2, 3); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
class Issue293 | ||
{ | ||
public function new() | ||
{ | ||
var i : Int = as3hx.Compat.setTimeout(function(args : Array<Dynamic> = null) | ||
{ | ||
trace(args); | ||
}, (1 + 1) * 1000, [1, 2, 3]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters