mirror of
https://github.com/janet-lang/janet
synced 2024-11-17 22:24:49 +00:00
By default, require and import extend current env.
This commit is contained in:
parent
60e22d9703
commit
0350834cd3
@ -2958,7 +2958,7 @@
|
||||
:core/stream path
|
||||
(file/open path :rb)))
|
||||
(def path-is-file (= f path))
|
||||
(default env (make-env))
|
||||
(default env (make-env (curenv)))
|
||||
(def spath (string path))
|
||||
(put env :source (or source (if-not path-is-file spath path)))
|
||||
(var exit-error nil)
|
||||
|
Loading…
Reference in New Issue
Block a user