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

[Reg] Error objects lack lineNumber and fileName properties when they're not thrown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.6.0
    • Qt Script
    • None

      e = new Error();

      The resulting error object doesn't have lineNumber and fileName properties.
      When an error is explicitly thrown (using the throw keyword), it does have these properties.
      This is a regression from Qt 4.5.

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

            kenthans Kent Hansen (Inactive)
            kenthans Kent Hansen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes