Summary

module-environment is broken for non-primitive modules

Metadata

Description

 $ csi -p "(module-environment 'extras)"
 #<environment extras>
 $ csi -p "(module-environment 'test)"
 
 Error: (car) bad argument type: #f

This appears to happen because non-primitive modules never have their "saved-environments" field set. I would expect something like this code in ##sys#register-primitive-module to appear in ##sys#register-compiled-module, but there is no such assignment.

Changes and comments

[2015-09-26 10:39:55 UTC] evhan changed status from new to closed

[2015-09-26 10:39:55 UTC] evhan set resolution to fixed

[2015-09-26 10:39:55 UTC] evhan changed milestone from someday to 4.11.0

[2015-09-26 10:39:55 UTC] evhan wrote:

Fixed by 8c68340 and 6fac44a.