Mozilla/mozilla/js/rhino/testsrc/doctests/serialize.doctest
nboyd%atg.com 58941333be Fix bug 419090: Object properties list in different (hash?) order than entered
Connect slots in a linked list to keep track of the insertion order.


git-svn-id: svn://10.0.0.236/trunk@251026 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-01 12:36:40 +00:00

11 lines
287 B
Plaintext

js> var obj = { a:3, b:"hi", 9:"nine", 12:1200 };
js> serialize(obj, "foo.bin");
js> obj2 = deserialize("foo.bin");
[object Object]
js> uneval(obj)
({a:3, b:"hi", 9:"nine", 12:1200})
js> uneval(obj2)
({a:3, b:"hi", 9:"nine", 12:1200})
js> (new java.io.File("foo.bin"))["delete"]();
true