1
0
mirror of https://github.com/janet-lang/janet synced 2024-09-19 18:59:37 +00:00

Fix quoting for import.

This commit is contained in:
Calvin Rose 2024-06-16 10:57:14 -05:00
parent 94b7a69741
commit fda0a081f5

View File

@ -3077,7 +3077,7 @@
current environment.``
[path & args]
(def ps (partition 2 args))
(def argm (mapcat (fn [[k v]] [k (if (= k :as) (string v) v)]) ps))
(def argm (mapcat (fn [[k v]] [k (case k :as (string v) :only ~(quote ,v) v)]) ps))
(tuple import* (string path) ;argm))
(defmacro use