Page 1 of 1

Stimulsoft Report Array Monkey Patch

Posted: Fri Mar 06, 2020 11:02 am
by inavega
Hi,
After opening a report within Stimulsoft, in certain cases our application would not behave correctly.
We discovered that the JS Component modifies the JS Array object:
Array.png
Array.png (27.81 KiB) Viewed 1294 times
This is generally considered a bad practice within the community, because it can lead to strange behaviors like the ones our company are having.
https://stackoverflow.com/questions/622 ... es/6223471
http://perfectionkills.com/extending-native-builtins/
https://stackoverflow.com/questions/140 ... d-practice
In our particular case we where searching for a Clone function which should not exist within Array's, but after opening the report this function and other ones were added.

Is there any plan in the future to address this serious issue or is there any workaround for this?
Best Regards,
Ivo

Re: Stimulsoft Report Array Monkey Patch

Posted: Wed Mar 11, 2020 11:37 pm
by Lech Kulikowski
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#1711