Vejovis: Suggesting Fixes for JavaScript Faults

Frolin S. Ocariza, Karthik Pattabiraman and Ali Mesbah, To appear in the ACM/IEEE International Conference on Software Engineering (ICSE), 2014. (Acceptance Rate: 20%) [ PDF | Talk ]

Abstract: JavaScript is used in web applications for achieving rich user interfaces and implementing core functionality. Unfortunately, JavaScript code is known to be prone to faults. In an earlier study, we found that over 65% of such faults are caused by the interaction of JavaScript code with the DOM at runtime (DOM-related faults). In this paper, we first perform an analysis of 190 bug reports to understand the fixes commonly applied by programmers to these DOM-related faults; we observe that parameter replacements and DOM element validations are common fix categories. Based on these findings, we propose an automated technique and tool, called VEJOVIS, for suggesting repairs for DOM-based JavaScript faults. To evaluate VEJOVIS, we conduct a case study in which we subject VEJOVIS to 22 real-world bugs across 11 applications. We find that VEJOVIS accurately suggests repairs for 20 out of the 22 bugs, and in 13 of the 20 cases, the correct fix was the top ranked one.

Comments Off on Vejovis: Suggesting Fixes for JavaScript Faults

Filed under papers

Comments are closed.