From 0350834cd3dab0491d79e90c473f678959bd97ce Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Wed, 15 May 2024 07:40:21 -0500 Subject: [PATCH] By default, require and import extend current env. --- src/boot/boot.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index dfbe9ef7..f3dbfd2a 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -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)