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

Using eval() in QML fails with a JavaScript EvalError

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.7.0
    • None
    • Linux Ubuntu 8.10, gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)

    Description

      Using the eval() function in a QML function, fails with the following error:
      EvalError: The "this" value passed to eval must be the global object from which eval originated

      This is a regression with respect to previous Qt 4.7 TP.

      A workaround is to use a Function object, but it's not flexible.

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            xalioth Fabien Chéreau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes