FR: Provide the remainder of the comparison operators for juce::var

Hey folks, I’m presently working on extending JUCE’s Javascript interpreter (more for the fun of it and learning the language).

It looks like juce::var is missing the operators <, <=, >, and >=. Implementing them should be mostly straightforward I think? It would also jive better with C++'s equivalent std::variant.

From my understanding from poking around the ECMA script standard and looking at duktape (a nearly fully compliant JS interpreter that’s open source), basically in circumstances that don’t make sense to compare you have to return undefined.

Yes, good request, didn’t realise they were missing - I’ll add that!

Has this been added yet?

Yeah, Jules did it soon after the request:

Perfect, thank you!