katiefenn / parker

Stylesheet analysis tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crashes with same code, but different formatting

bendtherules opened this issue · comments

Running Parker on this crashes

section, footer, nav {
display: block;
}

with the following error:

return values.reduce(function (previous, current) {return previous + curre
^
TypeError: Cannot call method 'reduce' of undefined
at sum (C:\Users\abhas\AppData\Roaming\npm\node_modules\parker\lib\Parker.js:158:19)
at aggregateSum (C:\Users\abhas\AppData\Roaming\npm\node_modules\parker\lib\Parker.js:103:12)
at C:\Users\abhas\AppData\Roaming\npm\node_modules\parker\lib\Parker.js:82:35
at Array.forEach (native)
at Function..each..forEach (C:\Users\abhas\AppData\Roaming\npm\node_modules\parker\node_modules\underscore\undersc
ore.js:79:11)
at aggregateData (C:\Users\abhas\AppData\Roaming\npm\node_modules\parker\lib\Parker.js:79:7)
at runMetrics (C:\Users\abhas\AppData\Roaming\npm\node_modules\parker\lib\Parker.js:64:12)
at Parker.run (C:\Users\abhas\AppData\Roaming\npm\node_modules\parker\lib\Parker.js:28:16)
at onAllComplete (C:\Users\abhas\AppData\Roaming\npm\node_modules\parker\parker.js:33:34)
at onComplete (C:\Users\abhas\AppData\Roaming\npm\node_modules\parker\parker.js:28:17)

But the same code formatted inline like this doesnt give any error.

section, footer, nav {display: block;}