Computer and Modernization ›› 2016, Vol. 0 ›› Issue (5): 100-105.doi: 10.3969/j.issn.10062475.2016.05.018

Previous Articles     Next Articles

Research on Dynamic Slicing Technique of JavaScript Programs

  

  1. School of Software, Shanghai Jiao Tong University, Shanghai 200240, China
  • Received:2015-11-09 Online:2016-05-24 Published:2016-05-25

Abstract: Program slicing technique can effectively facilitate program debugging, but traditional slicing technique is difficult to be directly utilized on JavaScript programs because of the dynamic feature introduced by JavaScript. In this paper, we propose a new dynamic program slicing technique. Combining with the features of JavaScript, this paper extends the definition of system dependence graph for JavaScript programs and includes the design and implementation of constructing algorithm. Based on this system dependence graph, we can perform program slicing work. The experimental result shows this technique can be effectively used in slicing JavaScript program and the slicing result occupies a small proportion of the original program.

Key words: program slicing, JavaScript, dynamic analysis, program debugging

CLC Number: