Nicolas Cannasse 18 年之前
父节点
当前提交
628d1333da
共有 3 个文件被更改,包括 5 次插入1 次删除
  1. 1 0
      doc/CHANGES.txt
  2. 1 1
      std/Type.hx
  3. 3 0
      std/haxe/Timer.hx

+ 1 - 0
doc/CHANGES.txt

@@ -19,6 +19,7 @@
 	added neko.Sys.command optional array of arguments
 	removed haxe.Proxy
 	added flash.XMLRequest
+	fixed Type.enumParameters for Neko
 
 2007-08-29: 1.15
 	fixed bug with Enum.construct when Enum have type parameters

+ 1 - 1
std/Type.hx

@@ -536,7 +536,7 @@ class Type {
 	**/
 	public static function enumParameters( e : Dynamic ) : Array<Dynamic> {
 	#if neko
-		return if( e.args == null ) [] else e.args;
+		return if( e.args == null ) [] else untyped Array.new1(e.args,__dollar__asize(e.args));
 	#else flash9
 		return if( e.params == null ) [] else e.params;
 	#else true

+ 3 - 0
std/haxe/Timer.hx

@@ -94,6 +94,9 @@ class Timer {
 
 	#end
 
+	/**
+		Returns a timestamp, in seconds
+	**/
 	public static function stamp() : Float {
 		#if flash
 		return flash.Lib.getTimer() / 1000;