Details
-
Bug
-
Resolution: Fixed
-
Major
-
14.4, 13.10.9, 14.8
-
None
-
Unknown
-
N/A
-
N/A
-
Pull Request accepted
-
Description
Prototype.js is overriding the standard Array.from with their own implementation, breaking several functionalities.
Array.from = $A;
This can cause problems when trying to integrate other libraries that may use Array.from
The problem can be reproduced by opening the developer console (while on a xwiki page) and trying the following code:
Array.from([1, 2, 3], (x) => x + x);
Expected result [2,4,6], in case of issue: [1,2,3]
Attachments
Issue Links
- blocks
-
MATHJAX-14 Upgrade to MathJax v3.2.2
- Closed
- relates to
-
XWIKI-15915 Unable to run CKEditor 5 due to deprecated prototype.js dependency breaking native APIs
- Closed
-
XWIKI-22377 Prototype.js can still break the standard Array.from method
- Closed