1
0
mirror of https://github.com/janet-lang/janet synced 2026-05-20 20:32:16 +00:00

Fix regression where private main was not run.

This commit is contained in:
Calvin Rose
2026-03-01 10:52:52 -06:00
parent 32d75c9e49
commit e8f9c12935
+1 -1
View File
@@ -4670,7 +4670,7 @@
(defn- run-main
[env subargs arg]
(when-let [main (module/value env 'main)]
(when-let [main (module/value env 'main true)]
(def guard (if (get env :debug) :ydt :y))
(defn wrap-main [&]
(main ;subargs))