]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/src/comp-tests.el (compile-forms): Fix missing lexical binding.
authorAndrea Corallo <akrl@sdf.org>
Sun, 1 Nov 2020 13:41:17 +0000 (14:41 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sun, 1 Nov 2020 14:17:00 +0000 (15:17 +0100)
test/src/comp-tests.el

index 9c3c7f62a3070d6d2747f3e346c0804402142352..21c8abad038597410f73f2e3e042594a755a8f01 100644 (file)
@@ -418,7 +418,8 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html."
 (comp-deftest compile-forms ()
   "Verify lambda form native compilation."
   (should-error (native-compile '(+ 1 foo)))
-  (let ((f (native-compile '(lambda (x) (1+ x)))))
+  (let ((lexical-binding t)
+        (f (native-compile '(lambda (x) (1+ x)))))
     (should (subr-native-elisp-p f))
     (should (= (funcall f 2) 3)))
   (let* ((lexical-binding nil)