We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0188581 commit 359c621Copy full SHA for 359c621
1 file changed
src/main/java/org/jruby/prism/parser/ParseResultPrism.java
@@ -51,6 +51,7 @@ public DynamicScope getDynamicScope() {
51
public StaticScope getStaticScope() {
52
if (rootScope == null) {
53
rootScope = IRBuilderPrism.createStaticScopeFrom(fileName, symbols(root.locals), StaticScope.Type.LOCAL, null);
54
+ rootScope.setModule(runtime.getObject());
55
toplevelScope = DynamicScope.newDynamicScope(rootScope);
56
}
57
0 commit comments