Skip to content

Commit

Permalink
Re-add important line? :)
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Oct 28, 2014
1 parent be7cb99 commit ea47cab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/main/java/org/jruby/Ruby.java
Expand Up @@ -41,6 +41,7 @@

import org.jruby.compiler.Constantizable;
import org.jruby.compiler.NotCompilableException;
import org.jruby.ir.IRScriptBody;
import org.objectweb.asm.util.TraceClassVisitor;
import jnr.constants.Constant;
import jnr.constants.ConstantSet;
Expand Down Expand Up @@ -1214,6 +1215,10 @@ private void init() {

// Create an IR manager and a top-level IR scope and bind it to the top-level static-scope object
irManager = new IRManager();
// FIXME: This registers itself into static scope as a side-effect. Let's make this
// relationship handled either more directly or through a descriptice method
// FIXME: We need a failing test case for this since removing it did not regress tests
new IRScriptBody(irManager, "", tc.getCurrentScope().getStaticScope());

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

0 comments on commit ea47cab

Please sign in to comment.