Needed with Qt6 for node comparison to work in JS, as done for example in the script engine unit test.