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

Compile error on javascript with statement on quick compiler

    XMLWordPrintable

    Details

      Description

      Javascript code using with statement like this 

       

      var myItem = {'a': 3, 'b': 4}
      with (myItem) {
          console.log("a = " + a)
      }
      

      When using quick compiler it produces an error

      .qtquickcompiler\main_qml.cpp(67): error C2664: 'void QV4::Runtime::method_pushWithScope(const QV4::Value &,QV4::NoThrowEngine *)': cannot convert argument 2 from 'QV4::ExecutionEngine *' to 'QV4::NoThrowEngine *'
      .qtquickcompiler\main_qml.cpp(67): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
      

       

       

       

        Attachments

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

          Activity

            People

            • Assignee:
              shausman Simon Hausmann
              Reporter:
              misalmel Mika Salmela
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes