Opened 5 years ago

Closed 4 years ago

#1186 closed defect (fixed)

module-environment is broken for non-primitive modules

Reported by: evhan Owned by:
Priority: major Milestone: 4.11.0
Component: core libraries Version: 4.9.x
Keywords: modules environments Cc:
Estimated difficulty:

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.

Change History (1)

comment:1 Changed 4 years ago by evhan

Milestone: someday4.11.0
Resolution: fixed
Status: newclosed

Fixed by 8c68340 and 6fac44a.

Note: See TracTickets for help on using tickets.