class ExecJS::RubyRhinoRuntime::Context

def exec(source, options = {})

def exec(source, options = {})
  source = source.encode(Encoding::UTF_8)
  if /\S/ =~ source
    eval "(function(){#{source}})()", options
  end
end