| Issue 175: | non-breaking but potentially confusing difference in Serializer output | |
| 1 person starred this issue and may be notified of changes. | Back to list |
class TestObject {
public var value(default,default):Dynamic;
public function new( value:Dynamic ) { this.value = value; }
}
class SerializeTest
extends haxe.unit.TestCase {
public function test() {
var t = new TestObject( new TestObject( "spam" ) );
var s = Serialize.serialize( t );
trace( s );
assertTrue( s != null );
}
}
HXCPP escapes the dots, which according to http://www.blooberry.com/indexdot/html/topics/urlencoding.htm#whatwhy is not required:
Class: com.example.pretty.test.SerializeTest SerializeTest.hx:9: cy42:com%2Eexample%2Epretty%2Etest%2ETestObjecty5:valuecR0R1y4:spamgg
Whereas Neko, JS, etc. targets do not escape the dots:
Class: com.example.pretty.test.SerializeTest SerializeTest.hx:9: cy34:com.example.pretty.test.TestObjecty5:valuecR0R1y4:spamgg
this makes it hard to automate testing of serializer output.
Jun 3, 2012
Project Member
#1
gameh...@gmail.com
Status:
Fixed
|