class ExecJS::ExternalRuntime::Context

def eval(source, options = {})

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