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

        1. qtbug63287.zip
          2 kB
          Mika Salmela
        For Gerrit Dashboard: QTBUG-63287
        # Subject Branch Project Status CR V

        Activity

          People

            shausman Simon Hausmann
            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