emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/native-comp 933fd76 4/5: * test/src/comp-tests.el (compile-forms


From: Andrea Corallo
Subject: feature/native-comp 933fd76 4/5: * test/src/comp-tests.el (compile-forms): Fix missing lexical binding.
Date: Sun, 1 Nov 2020 09:18:35 -0500 (EST)

branch: feature/native-comp
commit 933fd76f8fa4583aa3c4cc6e6e22f9a96638c5a5
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>

    * test/src/comp-tests.el (compile-forms): Fix missing lexical binding.
---
 test/src/comp-tests.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index 9c3c7f6..21c8aba 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]