Skip to content

Commit

Permalink
always keep Date.toString (close HaxeFoundation#2560)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed May 10, 2014
1 parent 0c8f9c8 commit 0eee921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/neko/_std/Date.hx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ import neko.Lib;
return Std.parseInt( new String(date_format(__t,untyped "%w".__s)) );
}

public function toString():String {
@:keep public function toString():String {
return new String(date_format(__t,null));
}

Expand Down Expand Up @@ -98,7 +98,7 @@ import neko.Lib;
static var int32_to_float = Lib.load("std","int32_to_float",1);
static var int32_add = Lib.load("std","int32_add",2);
static var int32_shl = Lib.load("std","int32_shl",2);
static function __string() : String { return untyped "Date".__s; }
@:keep static function __string() : String { return untyped "Date".__s; }

}

Expand Down

0 comments on commit 0eee921

Please sign in to comment.