@@ -107,7 +107,7 @@ extern class Date
throw "Invalid date format : " + s;
}
};
- Date.prototype.toString = function() {
+ Date.prototype["toString"] = function() {
var m = this.getMonth() + 1;
var d = this.getDate();
var h = this.getHours();
@@ -68,7 +68,7 @@ class Lib {
public static function registerClass( name : String, cl : {} ) {
- untyped _global["Object"].registerClass(name,cl);
+ untyped _global["Object"]["registerClass"](name,cl);
public static function throwException() {