Skip to content

Commit 7b7df13

Browse files
committed
Partially fix ast command
1 parent 8c09c45 commit 7b7df13

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/ast

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def ir_setup(root)
193193

194194
builder = org.jruby.ir.IRBuilder
195195

196-
scope = builder.new(manager).build_root(root)
196+
scope = builder.build_root(manager, root)
197197
passes = manager.get_compiler_passes(scope)
198198
[scope, passes]
199199
end

core/src/main/java/org/jruby/ir/IRScope.java

+1
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ public boolean equals(Object other) {
239239
}
240240

241241
protected void addChildScope(IRScope scope) {
242+
if (lexicalChildren == null) lexicalChildren = new ArrayList<>();
242243
lexicalChildren.add(scope);
243244
}
244245

0 commit comments

Comments
 (0)