class Cucumber::JsSupport::JsWorld

def execute(js_function, args=[])

def execute(js_function, args=[])
  js_args = args.map do |arg|
    if arg.is_a?(Ast::Table)
      "new CucumberJsDsl.Table(#{arg.raw.inspect})"
    else
      JsSupport.argument_safe_string(arg)
    end
  end
  @world.eval("(#{js_function.ToString})(#{js_args.join(',')});")
end