mozilla/rhino

Write an OpenRewrite rule to migrate to Rhino 2.0

開放

#2,363 建立於 2026年4月12日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (812 個分叉)batch import
good first issue

倉庫指標

星標
 (3,728 顆星)
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.

貢獻者指南