Sie befinden Sich nicht im Netzwerk der Universität Paderborn. Der Zugriff auf elektronische Ressourcen ist gegebenenfalls nur via VPN oder Shibboleth (DFN-AAI) möglich. mehr Informationen...
Ergebnis 17 von 118
Proceedings of ACM on programming languages, 2018-11, Vol.2 (OOPSLA), p.1-26
2018
Volltextzugriff (PDF)

Details

Autor(en) / Beteiligte
Titel
Finding broken promises in asynchronous JavaScript programs
Ist Teil von
  • Proceedings of ACM on programming languages, 2018-11, Vol.2 (OOPSLA), p.1-26
Erscheinungsjahr
2018
Quelle
ACM Digital Library Complete
Beschreibungen/Notizen
  • Recently, promises were added to ECMAScript 6, the JavaScript standard, in order to provide better support for the asynchrony that arises in user interfaces, network communication, and non-blocking I/O. Using promises, programmers can avoid common pitfalls of event-driven programming such as event races and the deeply nested counterintuitive control ow referred to as “callback hell”. Unfortunately, promises have complex semantics and the intricate control– and data- ow present in promise-based code hinders program comprehension and can easily lead to bugs. The promise graph was proposed as a graphical aid for understanding and debugging promise-based code. However, it did not cover all promise-related features in ECMAScript 6, and did not present or evaluate any technique for constructing the promise graphs. In this paper, we extend the notion of promise graphs to include all promise-related features in ECMAScript 6, including default reactions, exceptions, and the synchronization operations race and all. Furthermore, we report on the construction and evaluation of PromiseKeeper, which performs a dynamic analysis to create promise graphs and infer common promise anti-patterns. We evaluate PromiseKeeper by applying it to 12 open source promise-based Node.js applications. Our results suggest that the promise graphs constructed by PromiseKeeper can provide developers with valuable information about occurrences of common anti-patterns in their promise-based code, and that promise graphs can be constructed with acceptable run-time overhead.
Sprache
Englisch
Identifikatoren
ISSN: 2475-1421
eISSN: 2475-1421
DOI: 10.1145/3276532
Titel-ID: cdi_crossref_primary_10_1145_3276532
Format

Weiterführende Literatur

Empfehlungen zum selben Thema automatisch vorgeschlagen von bX