Skip to content

Commit 359c621

Browse files
committed
Safe to do but there is complexity in top-level staticscope this is 'maybe' wallpapering over. Give it Object for top cref
1 parent 0188581 commit 359c621

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/jruby/prism/parser/ParseResultPrism.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public DynamicScope getDynamicScope() {
5151
public StaticScope getStaticScope() {
5252
if (rootScope == null) {
5353
rootScope = IRBuilderPrism.createStaticScopeFrom(fileName, symbols(root.locals), StaticScope.Type.LOCAL, null);
54+
rootScope.setModule(runtime.getObject());
5455
toplevelScope = DynamicScope.newDynamicScope(rootScope);
5556
}
5657

0 commit comments

Comments
 (0)