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

Using eval() in QML fails with a JavaScript EvalError

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes