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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0
    • 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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes