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:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user