Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.5.1
-
None
-
Qt 5.5.1 on Windows/Linux
Description
A strange object corruption problem happens when using a 3rd party JavaScript library, possibly due to Array.concat. Unfortunately I wasn't able to extract a smaller piece of code that demonstrates the problem, so I'm putting it here in full.
When you run the attached QML example file, you'll see two outputs logged by the code that I added manually to the attached js file at line 3118. The second logging will have the "corrupt" object. Line 5225 seems like the culprit.
The problem doesn't present when the library is used in browsers or nodejs.
You can see the original issue here:
https://github.com/andrewplummer/Sugar/issues/543
Attachments
Issue Links
- relates to
-
QTBUG-69024 Function from js-file becomes global for all files.
- Closed
-
QTBUG-81037 Array.concat does not verify length against allocated space
- Closed