Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-38187

ASSERT failure in qv4ssa.cpp: for(x in y || {})

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.3.0
    • 5.2.1
    • None
    • Qt 5.2.1 for 32bit Visual C++ 2010 32bit on Windows 7
    • de11a78c625b0865f8cd3d0cfe446cba2bdb719e

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            erikv Erik Verbruggen
            jmatokic Johannes Matokic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes