Evaluating Large Language Models in JavaScript Code Modernization: A Multi-Task Benchmark
The constant evolution of the JavaScript language brings modern language features that simplify software development, notably the async/await syntax for asynchronous programming and arrow functions for lexical scoping. While these advancements improve code readability and maintainability, migrating legacy codebases to leverage new constructs remains a complex and error-prone process. To support research on automated language migration, we present a multi-task benchmark of real-world JavaScript migrations.
At its current version, the asynchronous subset comprises 4,221 migration instances from Promises to async/await syntax, while the structural subset expands the benchmark with 43,196 function to-arrow-function migrations extracted via Abstract Syntax Tree (AST) analysis. Each instance includes detailed metadata and source code before and after the transition. We believe this comprehen sive benchmark will allow researchers to evaluate Large Language Models (LLMs) on automated code rejuvenation tasks, providing an empirical characterization of modernizations and a baseline for model performance regarding structural fidelity and computational cost.
2026/2 - MSI2
Orientador: João Eduardo Montandon
Palavras-chave: Large Language Models (LLMs); Code Modernization; Software; Refactoring; JavaScript; Benchmark; Async/Await; Arrow Functions; Repository Mining
PDF Disponível
