Using 2.7.2 in Chrome:
>>> less.render(".foo { @supports (bar: baz) { margin: 0; } }", {dumpLineNumbers: "all"})
TypeError: Cannot read property 'lineNumber' of undefined at Function.debugInfo.asComment
This happens because the ruleset parsed here doesn't get a .debugInfo attached to it, and this if block gets executed because the ruleset of a nested @supports isn't .root.
(I'm not familiar enough with the code to know what the right fix is here, hence not a PR).
Using 2.7.2 in Chrome:
This happens because the ruleset parsed here doesn't get a
.debugInfoattached to it, and thisifblock gets executed because the ruleset of a nested@supportsisn't.root.(I'm not familiar enough with the code to know what the right fix is here, hence not a PR).