hyperstack-org/hyperstack

Hyperspec to_js method broken

Open

#393 建立於 2021年3月31日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (43 fork)batch import
buggood first issue

倉庫指標

Star
 (531 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

    def to_js(*args, &block)
      opal_compile(*process_params(*args, &block))
    end

needs to be

    def to_js(*args, &block)
      opal_compile(process_params(*args, &block).first)
    end

(second value from process_params is options for mounting, which opal_compile doesn't need)

Should have a simple spec anyway that says yes I returned a string with length > 0

貢獻者指南