truffleruby
truffleruby copied to clipboard
ObjectSpace.each_object(Module) should visit singleton classes
Maybe it changed in CRuby, in any case latest CRuby includes them. In TruffleRuby it doesn't include them since b3bfc9d388331bfbdf5ea3f238317ecc316ed7a7.
We still need to hide singleton classes which don't have their own singleton class yet, i.e., RubyClass instances for which .getMetaClass().isSingleton is false.