Browse Source

dynamic toString is not specified and crashes Cpp

Simon Krajewski 12 years ago
parent
commit
8c5b36b0b1
1 changed files with 6 additions and 6 deletions
  1. 6 6
      tests/unit/TestMisc.hx

+ 6 - 6
tests/unit/TestMisc.hx

@@ -511,12 +511,12 @@ class TestMisc extends Test {
 		var x = { toString : function() return "foo" };
 		var x = { toString : function() return "foo" };
 		eq( Std.string(x), "foo" );
 		eq( Std.string(x), "foo" );
 
 
-		var x1:Dynamic = new MyDynamicChildWithToString();
-		eq( Std.string(x1), "Custom toString" );
-
-		var x2:Dynamic = new MyDynamicChildWithoutToString();
-		x2.toString = function() return "foo";
-		eq( Std.string(x2), "foo" );
+		//var x1:Dynamic = new MyDynamicChildWithToString();
+		//eq( Std.string(x1), "Custom toString" );
+//
+		//var x2:Dynamic = new MyDynamicChildWithoutToString();
+		//x2.toString = function() return "foo";
+		//eq( Std.string(x2), "foo" );
 
 
 	}
 	}