Skip to content

Commit

Permalink
Revert "signal buttercup-dynamic-binding-error when lexical-binding !…
Browse files Browse the repository at this point in the history
…= t"

This reverts commit 9bb93d5.
  • Loading branch information
snogge committed Mar 15, 2024
1 parent b7c45a4 commit 2cb6d0c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions buttercup.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@
;; inconsistencies.
(define-error 'buttercup-internals-error "Internal buttercup error"
'buttercup-error-base)
;; Raised when expanding `describe` macros whithout lexical-binding: t
(define-error 'buttercup-dynamic-binding-error "Lexical binding is not enabled"
'buttercup-error-base)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; wrapper function manipulation
Expand Down Expand Up @@ -955,9 +952,6 @@ form.")
DESCRIPTION is a string. BODY is a sequence of instructions,
mainly calls to `describe', `it' and `before-each'."
(declare (indent 1) (debug (&define sexp def-body)))
(unless lexical-binding
(signal 'buttercup-dynamic-binding-error
"buttercup requires `lexical-binding' to be t"))
(let ((new-body
(cond
((eq (elt body 0) :var)
Expand Down

0 comments on commit 2cb6d0c

Please sign in to comment.