mozilla/rhino

Write an OpenRewrite rule to migrate to Rhino 2.0

Open

#2,363 创建于 2026年4月12日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (812 fork)batch import
good first issue

仓库指标

Star
 (3,728 star)
PR 合并指标
 (平均合并 6天 16小时) (30 天内合并 15 个 PR)

描述

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.

贡献者指南