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