Skip to content

Empty ruleset throws exception #28

Open

Description

@jonnor
#parameterSection {

}

When #parameterSection selector matches

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

Activity

  1. cbchouinard commented on Feb 4, 2015

    @cbchouinard
    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?

  2. paulyoung commented on Mar 28, 2015

    @paulyoung
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions