# File lib/execjs/ruby_rhino_runtime.rb, line 12 def exec(source, options = {}) source = source.encode('UTF-8') if source.respond_to?(:encode) if /\S/ =~ source eval "(function(){#{source}})()", options end end