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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes