mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-socket: should not directly call private #initialize; fix #6554
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user