Stimulsoft Report Array Monkey Patch
Posted: Fri Mar 06, 2020 11:02 am
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: 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
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: 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