hyperstack-org/hyperstack

Hyperspec to_js method broken

Open

#393 ouverte le 31 mars 2021

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (43 forks)batch import
buggood first issue

Métriques du dépôt

Stars
 (531 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

    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

Guide contributeur