mozilla/rhino

Write an OpenRewrite rule to migrate to Rhino 2.0

Open

#2.363 aberto em 12 de abr. de 2026

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (812 forks)batch import
good first issue

Métricas do repositório

Stars
 (3.728 stars)
Métricas de merge de PR
 (Mesclagem média 6d 16h) (15 fundiu PRs em 30d)

Description

With the current work on the "master" branch we have finally reached the point where existing Rhino code will need to change, specifically to use the new VarScope class to represent the scope in every call instead of Scriptable. This is a big change, although one that doesn't require a ton of thinking!

OpenRewrite is a great framework well-suited to applying these kinds of changes automatically -- we recently used it in this project to convert from Junit 4 to 5, for example. It accomplished this deterministic task with much less drama and prompting and a lot less money spent than trying to solve that same problem using your favorite LLM.

Guia do colaborador