...
首页> 外文期刊>Software Engineering, IEEE Transactions on >A Study of Causes and Consequences of Client-Side JavaScript Bugs
【24h】

A Study of Causes and Consequences of Client-Side JavaScript Bugs

机译:客户端JavaScript错误的原因和后果的研究

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Client-side JavaScript is widely used in web applications to improve user-interactivity and minimize client-server communications. Unfortunately, JavaScript is known to be error-prone. While prior studies have demonstrated the prevalence of JavaScript faults, no attempts have been made to determine their causes and consequences. The goal of our study is to understand the root causes and impact of JavaScript faults and how the results can impact JavaScript programmers, testers and tool developers. We perform an empirical study of 502 bug reports from 19 bug repositories. The bug reports are thoroughly examined to classify and extract information about each bug' cause (the error) and consequence (the failure and impact). Our results show that the majority (68 percent) of JavaScript faults are DOM-related, meaning they are caused by faulty interactions of the JavaScript code with the Document Object Model (DOM). Further, 80 percent of the highest impact JavaScript faults are DOM-related. Finally, most JavaScript faults originate from programmer mistakes committed in the JavaScript code itself, as opposed to other web application components. These results indicate that JavaScript programmers and testers need tools that can help them reason about the DOM. Additionally, developers can use the error patterns we found to design more powerful static analysis tools for JavaScript.
机译:客户端JavaScript在Web应用程序中被广泛使用,以改善用户交互性并最小化客户端与服务器之间的通信。不幸的是,众所周知JavaScript很容易出错。尽管先前的研究已经证明了JavaScript错误的普遍性,但尚未尝试确定它们的原因和后果。我们研究的目的是了解JavaScript错误的根本原因和影响,以及结果如何影响JavaScript程序员,测试人员和工具开发人员。我们对19个错误存储库中的502个错误报告进行了实证研究。彻底检查了错误报告,以分类和提取有关每个错误的原因(错误)和后果(失败和影响)的信息。我们的结果表明,大多数JavaScript错误(68%)与DOM相关,这意味着它们是由JavaScript代码与文档对象模型(DOM)的错误交互引起的。此外,影响最大的JavaScript错误中有80%与DOM有关。最后,与其他Web应用程序组件相反,大多数JavaScript错误源自JavaScript代码本身中的程序员错误。这些结果表明,JavaScript程序员和测试人员需要能够帮助他们推理DOM的工具。此外,开发人员可以使用我们发现的错误模式为JavaScript设计更强大的静态分析工具。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号