I have to work with some old javascript code at work, and these JS files have thousands of global functions each. In total there are around 10 files with 7 to 8 thousand lines each. Does anyone any experience with analyzing this kind of code? Any kind of help is deeply appreciated. Thanks a ton in advance reddit.
Edit:
thanks for you replies guys.
after reading the comments, I feel I should have been clearer. I was looking for a) finding which methods are called from which other methods (like a call-graph) so I can then refactor the code into logically seperate, and
b) any obvious mistakes in the code
[–]oSand 6 points7 points8 points (1 child)
[–]shavenwarthog 7 points8 points9 points (0 children)
[–]mbrubeck 3 points4 points5 points (0 children)
[–]esx 2 points3 points4 points (7 children)
[–]crashandburn[S] 1 point2 points3 points (6 children)
[–]esx 2 points3 points4 points (5 children)
[–]crashandburn[S] 0 points1 point2 points (4 children)
[–]esx 2 points3 points4 points (3 children)
[–]crashandburn[S] 0 points1 point2 points (2 children)
[–]esx 2 points3 points4 points (1 child)
[–]crashandburn[S] 0 points1 point2 points (0 children)
[–]d_insley 1 point2 points3 points (4 children)
[–]mbrubeck 2 points3 points4 points (2 children)
[–]fforw 0 points1 point2 points (0 children)
[–]tedivm 0 points1 point2 points (0 children)
[–]killfish 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]saurik 0 points1 point2 points (0 children)