SimenB / stylint

Improve your Stylus code with Stylint
https://simenb.github.io/stylint/
GNU General Public License v2.0
348 stars 61 forks source link

Fix for Node.js 11 #448

Closed Trott closed 5 years ago

Trott commented 5 years ago

The sortOrder() function appears to make an assumption about custom sort functions that isn't true in the V8 shipped with Node.js 11. As a result, tests fail in Node.js 11, and probably code in the wild fails too. This fixes the function to be compatible with Node.js 11.

This will also mean that Travis should now start passing again.

ghost commented 5 years ago

@Trott:Thank you for your nice and immediate help! :D