Hi all,
I've been running into an error situation with an accidently forgotten
comma behind the last element of an array initialization. Something like:
var a = [
{ name: 'bla' },
{ name: 'blu' },
];
console.log(a.length);
If this code is executed in IE8 you get an array length of 3 whereas in
IE9 and higher and all other current browsers the length seems to be 2.
At least the error only shows up in IE8.
I'm frequently using "generate.py on my project" to find code flaws like
this, but unfortunately the linter in the toolchain did not detect the
false code.
Shouldn't lint warn about the dangling comma?
Or is this a valid javascript code?
Thank you for your attention.
Regards
Dietrich
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel