JavaScript Errors in the Wild: An Empirical Study
Authors:
- Frolin S. Ocariza Jr.FJFrolin S. Ocariza Jr.
- Karthik PattabiramanKPKarthik Pattabiraman
- Benjamin ZornBZBenjamin Zorn
- 1 November 2011
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10719458,p. 100-109
Abstract
Client-side JavaScript is being widely used in popular web applications to improve functionality, increase responsiveness, and decrease load times. However, it is challenging to build reliable applications using JavaScript. This paper presents an empirical characterization of the error messages printed by JavaScript code in web applications, and attempts to understand their root causes. We find that JavaScript errors occur in production web applications, and that the errors fall into a small number of categories. We further find that both non-deterministic and deterministic errors occur in the applications, and that the speed of testing plays an important role in exposing errors. Finally, we study the correlations among the static and dynamic properties of the application and the frequency of errors in it in order to understand the root causes of the errors.Keywords
This publication has 14 references indexed in Scilit:
- JavaScript Errors in the Wild: An Empirical Study2011
- Statically locating web application bugs caused by asynchronous calls2011
- DoDOM: Leveraging DOM Invariants for Web 2.0 Application Robustness Testing2010
- An empirical study of privacy-violating information flows in JavaScript web applications2010
- Detecting user-visible failures in AJAX web applications by analyzing users' interaction behaviors2010
- Characterizing insecure javascript practices on the web2009
- Invariant-based automatic testing of AJAX user interfaces2009
- Empirical Validation of a Web Fault Taxonomy and its usage for Fault Seeding2007
- The Internet Encyclopedia2004
- An empirical study of operating systems errors2001