mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 14:49:18 +02:00
containing-module should account for the fact the a module's environment may not yet be set.
This commit is contained in:
parent
a54c6c4e98
commit
216bfb87c9
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@
|
|||
(let lp1 ((ls (reverse *modules*)))
|
||||
(and (pair? ls)
|
||||
(let ((env (module-env (cdar ls))))
|
||||
(let lp2 ((e-ls (env-exports env)))
|
||||
(let lp2 ((e-ls (if (environment? env) (env-exports env) '())))
|
||||
(if (null? e-ls)
|
||||
(lp1 (cdr ls))
|
||||
(let ((cell (env-cell env (car e-ls))))
|
||||
|
|
Loading…
Add table
Reference in a new issue