Project

General

Profile

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)`

Added by gfx (Goro FUJI) about 13 years ago. Updated about 13 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: PDF Atom