yhara/biwascheme — Issue #31: cadr on list with 1 element.
Author: dp-yp-mbg
Created: 2011-11-17 10:23:39+00:00
State: open

When applying functions like cadr to a list, for which it should not work (and raise the message "Error: Attempt to apply car on nil"), instead the result is "[BUG] library function `cadr' returned JavaScript's undefined". I guess this is a low-priority bug, since it presents itself only when the input is incorrect, but nevertheless I doubt it is what is expected.

The bug also appears when calling caddr and cadddr with similar examples.

Example:
(cadr '(1))
[BUG] library function `cadr' returned JavaScript's undefined

Version is 0.5.7, as seen on repl.it