Skip to content

Commit

Permalink
Enable const_missing in repl
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 18, 2013
1 parent 66865e6 commit 6b71bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/opal-repl
Expand Up @@ -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")}"
Expand Down

0 comments on commit 6b71bae

Please sign in to comment.