Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/ruby/jruby/jruby.rb
Original file line number Diff line number Diff line change
@@ -90,7 +90,8 @@ def compile(content = nil, filename = (default_filename = true; '-'), extra_posi
irscope = compile_ir(content, filename)

visitor = org.jruby.ir.targets.JVMVisitor.new
bytes = visitor.compile_to_bytecode(irscope);
context = org.jruby.ir.targets.JVMVisitorMethodContext.new
bytes = visitor.compile_to_bytecode(irscope, context)
static_scope = irscope.static_scope;
top_self = runtime.top_self
static_scope.module = top_self.class

0 comments on commit d6939af

Please sign in to comment.