Skip to content

Commit ea47cab

Browse files
committed
Re-add important line? :)
1 parent be7cb99 commit ea47cab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/java/org/jruby/Ruby.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
import org.jruby.compiler.Constantizable;
4343
import org.jruby.compiler.NotCompilableException;
44+
import org.jruby.ir.IRScriptBody;
4445
import org.objectweb.asm.util.TraceClassVisitor;
4546
import jnr.constants.Constant;
4647
import jnr.constants.ConstantSet;
@@ -1214,6 +1215,10 @@ private void init() {
12141215

12151216
// Create an IR manager and a top-level IR scope and bind it to the top-level static-scope object
12161217
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());
12171222

12181223
// Initialize the "dummy" class used as a marker
12191224
dummyClass = new RubyClass(this, classClass);

0 commit comments

Comments
 (0)