Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/opal-repl
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ module Opal
end

def eval_ruby(str)
code = @builder.build_str str, :irb => true
code = @builder.build_str str, :irb => true, :const_missing => true
@v8.eval "var $_result = #{code} ($_result == null ? 'nil' : $_result.$inspect());"
rescue => e
puts "#{e.message}\n\t#{e.backtrace.join("\n\t")}"

0 comments on commit 6b71bae

Please sign in to comment.