Skip to content

Commit c72b158

Browse files
committed
CHANGE: better sorting of specific runtime extension module values
1 parent c94c96a commit c72b158

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/mezz/sys-base.reb

+9-3
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,16 @@ make-module*: func [
129129
; Module is an object during its initialization:
130130
obj: make object! 7 ; arbitrary starting size
131131

132-
if find spec/options 'extension [
133-
append obj 'lib-base ; specific runtime values MUST BE FIRST
132+
either find spec/options 'extension [
133+
bind/new [
134+
lib-base ; specific runtime values MUST BE FIRST
135+
lib-file
136+
lib-local
137+
words
138+
] obj
139+
][
140+
append obj 'lib-local ; local import library for the module
134141
]
135-
append obj 'lib-local ; local import library for the module
136142

137143
unless spec/type [spec/type: 'module] ; in case not set earlier
138144

0 commit comments

Comments
 (0)