Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
JS Interpreter: Fix incorrect sort() behavior #19012
// Array.sort doesn't work properly console.log([5, 4, 5, 1].sort()); // Expected: [1,4,5,5] // Actual : [4,1,5,5]
I've updated our interpreter to a new version that includes a fix for the sort behavior. I've also added a regression test for the broken case, and along the way, I added a new test utility that (in my opinion) makes certain App Lab tests much nicer to read and write.