File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
core/src/main/java/org/jruby Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 41
41
42
42
import org .jruby .compiler .Constantizable ;
43
43
import org .jruby .compiler .NotCompilableException ;
44
+ import org .jruby .ir .IRScriptBody ;
44
45
import org .objectweb .asm .util .TraceClassVisitor ;
45
46
import jnr .constants .Constant ;
46
47
import jnr .constants .ConstantSet ;
@@ -1214,6 +1215,10 @@ private void init() {
1214
1215
1215
1216
// Create an IR manager and a top-level IR scope and bind it to the top-level static-scope object
1216
1217
irManager = new IRManager ();
1218
+ // FIXME: This registers itself into static scope as a side-effect. Let's make this
1219
+ // relationship handled either more directly or through a descriptice method
1220
+ // FIXME: We need a failing test case for this since removing it did not regress tests
1221
+ new IRScriptBody (irManager , "" , tc .getCurrentScope ().getStaticScope ());
1217
1222
1218
1223
// Initialize the "dummy" class used as a marker
1219
1224
dummyClass = new RubyClass (this , classClass );
You can’t perform that action at this time.
0 commit comments