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

QScriptContext::isCalledAsConstructor() returns the wrong result for JS contexts when JIT is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 4.6.0
    • Qt Script
    • None

    Description

      If you have a native function that's called by a JS function that was invoked as a constructor (i.e. using the new operator), and call the parent context's (i.e. JS context's) isCalledAsConstructor() function, it always returns false. This only happens when the JIT is enabled.
      This is a behavioral change from 4.5.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes