Rich-Harris / butternut

The fast, future-friendly minifier
https://butternut.now.sh
MIT License
1.17k stars 17 forks source link

Bug: "TypeError: Cannot read property 'getRightHandSide' of null" #137

Closed loilo closed 7 years ago

loilo commented 7 years ago

Squashing dojo gives an error:

TypeError: Cannot read property 'getRightHandSide' of null
    at Node.getRightHandSide (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:1878:24)
    at Node.getRightHandSide (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:3523:43)
    at Node.getRightHandSide (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:1874:49)
    at Node.minify (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:3651:54)
    at Node.minify (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:1673:13)
    at Node.minify (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:2742:14)
    at Node.minify (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:240:11)
    at Node.minify (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:1032:28)
    at Node.minify (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:240:11)
    at Node.minify (/path/to/project/node_modules/butternut/dist/butternut.cjs.js:3645:15)