geopaulm / maashaack

Automatically exported from code.google.com/p/maashaack
0 stars 0 forks source link

eden can not deserialize a single digit #181

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. var src:String = eden.serialize( "1" );
2. trace( src ); //undefined

What is the expected output? What do you see instead?

expected: "1"
result: "undefined"

yeah lame bug, I'll fix it like ... right now!

Original issue reported on code.google.com by zwetan on 9 Aug 2009 at 9:37

GoogleCodeExporter commented 8 years ago
oups the bug is about deserialize() not serialize()

What steps will reproduce the problem?
1. var result:* = eden.deserialize( "1" );
2. trace( result ); //undefined

What is the expected output? What do you see instead?

expected: 1 //as a number
result: undefined //soemthing went wrong

Original comment by zwetan on 9 Aug 2009 at 9:41

GoogleCodeExporter commented 8 years ago
fixed, now we have a source equals 1 char safe check

Original comment by zwetan on 9 Aug 2009 at 10:28