This project is closed and read-only.
Actions
Backport #8884
closed`caller(1, nil)` raises a runtime error while its reference says its signature as `caller(start=1, length=nil)`
Backport #8884:
`caller(1, nil)` raises a runtime error while its reference says its signature as `caller(start=1, length=nil)`
Status:
Closed
Assignee:
Description
$ ruby -e 'caller(1, nil)'
'
-e:1:incaller': no implicit conversion from nil to integer (TypeError) from -e:1:in
Either the behaviour or the document looks wrong; I don't know which is wrong, though.
Actions