Skip to content

Commit 44f924b

Browse files
committed
chore: add comment to give full context on exception
from @m7pr
1 parent 674d872 commit 44f924b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/qenv-eval_code.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ setMethod("eval_code", signature = c("qenv", "expression"), function(object, cod
100100
} else {
101101
Reduce(function(u, v) {
102102
if (inherits(v, "=") && identical(typeof(v), "language")) {
103+
# typeof(`=`) is language, but it doesn't dispatch on it, so we need to
104+
# explicitly pass it as first class of the object
103105
class(v) <- unique(c("language", class(v)))
104106
}
105107
eval_code(u, v)

0 commit comments

Comments
 (0)