Rename the internal concept from "package" to "module directory" when loading module.wren files from subdirectories. Update variable names (packageModule to moduleDir, packageModulePath to moduleDirPath) and adjust early return logic to free modulePath before checking contents. Add test for loading module from a directory and remove old package module test.
3 lines
62 B
Plaintext
3 lines
62 B
Plaintext
import "something" for Index
|
|
|
|
IO.print(Index) // expect: index |