-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.1.0
-
None
-
Ubuntu Linux 12.04 64-bit
-
3dbe05f6bf3fd51ce8097c35f6c7f12b39acb0f6 (qtdeclarative)
If a JavaScript object is passed to C++ through a QVariant and subsequently set back to the JS engine, all functions have been converted to empty objects. The copy should be shallow and transfer an object reference only.
In the attached example, the "console" property of the JavaScript global object is passed back to the engine through a QVariant, which causes all functions to stop working.
- relates to
-
QTBUG-40431 Property alias on a javascript object points to different and corrupted object
-
- Closed
-