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

[Reg] Changing Global Object's prototype from JavaScript is not reflected on the C++ side

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P4: Low
    • Some future release
    • 4.6.0
    • Qt Script
    • None

    Description

      QScriptEngine engine;
      QScriptValue global = engine.globalObject();
      engine.evaluate("this_proto_ =

      {'a': 123}

      ");
      qDebug() << global.property("a").toString(); // prints an empty string rather than value of 'a'

      This is a regression from 4.5.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes