Work

DrAsync: identifying and visualizing anti-patterns in asynchronous JavaScript

Year: 2022
Type: conference-paper
Abstract: Promises and async/await have become popular mechanisms for implementing asynchronous computations in JavaScript, but despite their popularity, programmers have difficulty using them. This paper identifies 8 anti-patterns in promise-based JavaScript code that are prevalent across popular JavaScript repositories. We present a light-weight static analysis for automatically detecting these anti-patterns. This analysis is embedded in an interactive visualization tool that additionally relies on dynamic analysis to visualize promise lifetimes and instances of anti-patterns executed at run time. By enabling the user to navigate between promises in the visualization and the source code fragments that they originate from, problems and optimization opportunities can be identified.
Language: English
Open Access status: hybrid
OpenAlex ID: W4284666983
FWCI: 1.036
Cites: 21
Cited by: 13
Related to: 10