mruby-socket: should not directly call private #initialize; fix #6554

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-06-10 14:28:26 +09:00
parent 2f00046758
commit b5197c22f6
+1 -1
View File
@@ -254,7 +254,7 @@ class TCPSocket < IPSocket
def self._new_with_prelude(*args, &pre)
o = self._allocate
o.instance_eval(&pre)
o.initialize(*args)
o.__send__(:initialize, *args)
o
end