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

Fix Ruleset.prototype.find failing for certain frames #2574

Merged
merged 1 commit into from
Apr 27, 2015
Merged

Fix Ruleset.prototype.find failing for certain frames #2574

merged 1 commit into from
Apr 27, 2015

Conversation

seven-phases-max
Copy link
Member

Some frames may have no rules and Ruleset.prototype.find fails with those at https://github.com/less/less.js/blob/v2.5.0/lib/less/tree/ruleset.js#L287 because of null.forEach.
I suppose this can affect only programmatic usage of find (e.g. within a plugin or so, I stepped into this with a "mixin definition default parameter values" frame).

lukeapage added a commit that referenced this pull request Apr 27, 2015
Fix `Ruleset.prototype.find` failing for certain frames
@lukeapage lukeapage merged commit 2c5aa39 into less:master Apr 27, 2015
@seven-phases-max seven-phases-max deleted the fix-ruleset-find branch April 27, 2015 12:48
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

Successfully merging this pull request may close these issues.

None yet

2 participants