Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.1
-
None
-
Qt 5.2.1 for 32bit Visual C++ 2010 32bit on Windows 7
-
de11a78c625b0865f8cd3d0cfe446cba2bdb719e
Description
I wanted to add '|| {}' as a default for a potentially uninitiallized y.
Evaluation of the following two lines then resulted in a crash:
var y = {};
for(var x in y || {}) ;
I'm not sure whether this is valid JavaScript at all. However even when it's not there should be an error instead of an crash.