Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty ruleset throws exception #28

Open
jonnor opened this issue Feb 3, 2015 · 2 comments
Open

Empty ruleset throws exception #28

jonnor opened this issue Feb 3, 2015 · 2 comments

Comments

@jonnor
Copy link

jonnor commented Feb 3, 2015

#parameterSection {

}

When #parameterSection selector matches

Throws RangeError: Invalid array length at args = Array(length); inside Command.prototype.descend
Inspection shows length is -1

@cbchouinard
Copy link
Member

Need to look into this but FYI we already have a test for this:

parse """
          article.featured > img {

          }
          """
        ,
          {
            commands: [
              ['rule',
                ["tag",[">",['.',['tag','article'],'featured']],"img"]
                []
              ]
            ]
          }

Should we then lower the restriction in the error inspector?

@paulyoung
Copy link
Contributor

These are probably handled differently since the spec relies on plural bindings vs the original example which uses an ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants