Detecting Function Constructors in JavaScript

Shahriar Rostami, Laleh Mousavi Eshkevari, Davood Mazinanian, Nikolaos Tsantalis · 2016

Prior to the recent updates of the JavaScript language specifications, developers had to use custom solutions to emulate constructs such as classes, modules, and namespaces in JavaScript programs. This paper introduces JSDEODORANT, an automatic approach for detecting function constructors declared locally, under a namespace, or even in other modules. The comparison with the state-of-the-art tool, JSClassFinder, shows that while the precision of the tools is very similar (97% and 98%), the recall of JSDEODORANT (98%) is much higher than JSClassFinder (61%).

Read the paper · More papers on PaperTik