Validate SPEC of `dolist', cf. Bug#25477.
commit98bfac68b98e051425c41873edc48f9af5c92361
authorPhilipp Stephani <phst@google.com>
Sun, 26 Mar 2017 18:53:43 +0000 (26 20:53 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 8 Apr 2017 15:15:31 +0000 (8 17:15 +0200)
tree344d18686c78659e7cbe843080658d08cab0c4af
parent5ea696fd24c2bd8006050866fba0ccab1c0ff931
Validate SPEC of `dolist', cf. Bug#25477.

* lisp/subr.el (dolist): Test type and length of SPEC.
* test/lisp/subr-tests.el (subr-tests--dolist--wrong-number-of-args):
Add unit test.
lisp/subr.el
test/lisp/subr-tests.el