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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes