Skip to content

compile method does not throw error #287

@icsaba

Description

@icsaba

the compile method does not throw an error in case of bad selectors are given.

const cssSelect = require('css-select');
cssSelect.compile("##button"); 

the compile method returns with a function, but an error expected Uncaught Error: Expected name, found ##button

The problem is with the css-what 's latest version where parser method does not throw the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions