]> git.eshelyaron.com Git - emacs.git/commit
Fix byte-compiler crash for legal dynamic-binding code
authorMattias Engdegård <mattiase@acm.org>
Sat, 25 Sep 2021 10:15:21 +0000 (12:15 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 25 Sep 2021 18:25:02 +0000 (20:25 +0200)
commit45c32d7f00e225a78e6c8b2251de335e93e556e0
treecf0058e94deabaf35a76c4d43693dc4c3b56f977
parente93bdfb6dafd4cb8d660e1330a8527f61e831eab
Fix byte-compiler crash for legal dynamic-binding code

This should really be taken care of by a syntax normalisation step in
the frontend, but there is no such step for non-lexbind code yet.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-letX): Tolerate bindingsa
without initialising expressions.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test cases.
lisp/emacs-lisp/byte-opt.el
test/lisp/emacs-lisp/bytecomp-tests.el