Project

General

Profile

Actions

Backport #8884

closed

`caller(1, nil)` raises a runtime error while its reference says its signature as `caller(start=1, length=nil)`

Added by gfx (Goro FUJI) about 11 years ago. Updated about 11 years ago.


Description

$ ruby -e 'caller(1, nil)'
-e:1:in caller': 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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0