Hello,
Can someone comment on the ordering of object keys? It seems that V8
and SpiderMonkey both preserve the defined order, but Rhino does not.
Consider this example:
for(var k in { b: 'b', c: 'c', a: 'a' }) console.info(k);
In V8 and SpiderMonkey, the output is:
b
c
a
The equivalent snippet in Rhino:
for(var k in { b: 'b', c: 'c', a: 'a' }) println(k);
Outputs:
a
b
c
I'm prototyping an app, and this has posed a slight pain. Is the key-
order actually specified, and if so, can this be corrected in Rhino?
If not, I guess I'll have to change my approach.
Thanks,
chris
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino